7
mirror of https://github.com/issus/altium-library.git synced 2025-04-01 03:16:56 +00:00

Added new database views for new components

This commit is contained in:
Mark 2016-07-17 00:19:21 -06:00
parent 41b44635c9
commit c490f310c2
5 changed files with 138 additions and 11 deletions

View File

@ -0,0 +1,45 @@

CREATE VIEW [dbo].[Button - Push] AS
SELECT TOP (100) PERCENT PartId,
Value,
COMMENT,
MfrPartNo AS [Part Number],
Manufacturer,
Description,
Supplier1 AS [Supplier 1],
Supplier1PartNo AS [Supplier Part Number 1],
FootprintRef AS [Footprint Ref],
FootprintPath AS [Footprint Path],
SymbolRef AS [Library Ref],
SymbolPath AS [Library Path],
ComponentLink1Description,
ComponentLink1URL,
ComponentLink2Description,
ComponentLink2URL,
ComponentLink3Description,
ComponentLink3URL,
Supplier2 AS [Supplier 2],
Supplier2PartNo AS [Supplier Part Number 2],
FootprintRef2 AS [Footprint Ref 2],
FootprintPath2 AS [Footprint Path 2],
FootprintRef3 AS [Footprint Ref 3],
FootprintPath3 AS [Footprint Path 3],
Price,
TYPE,
DevicePackage AS [Device Package],
Series,
Circuit,
SwitchFunction AS [Switch Function],
ContactRatingAtVoltage AS [Contact Rating @ Voltage],
ActuatorType AS [Actuator Type],
ActuatorOrientation AS [Actuator Orientation],
Illumination,
IlluminationVoltage AS [Illumination Voltage],
IlluminationTypeColour AS [Illumination Type, Colour],
OperatingForce AS [Operating Force],
SwitchTravel AS [Switch Travel],
MechanicalLife AS [Mechanical Life],
TemperatureRange AS [Operating Temperature]
FROM dbo.Components
WHERE (ComponentType = 'BUTTON')
AND (ComponentSubType = 'PUSH')

View File

@ -0,0 +1,46 @@

CREATE VIEW [dbo].[Button - Slide] AS
SELECT TOP (100) PERCENT PartId,
Value,
COMMENT,
MfrPartNo AS [Part Number],
Manufacturer,
Description,
Supplier1 AS [Supplier 1],
Supplier1PartNo AS [Supplier Part Number 1],
FootprintRef AS [Footprint Ref],
FootprintPath AS [Footprint Path],
SymbolRef AS [Library Ref],
SymbolPath AS [Library Path],
ComponentLink1Description,
ComponentLink1URL,
ComponentLink2Description,
ComponentLink2URL,
ComponentLink3Description,
ComponentLink3URL,
Supplier2 AS [Supplier 2],
Supplier2PartNo AS [Supplier Part Number 2],
FootprintRef2 AS [Footprint Ref 2],
FootprintPath2 AS [Footprint Path 2],
FootprintRef3 AS [Footprint Ref 3],
FootprintPath3 AS [Footprint Path 3],
Price,
TYPE,
DevicePackage AS [Device Package],
Series,
Circuit,
SwitchFunction AS [Switch Function],
ContactRatingAtVoltage AS [Contact Rating @ Voltage],
ActuatorType AS [Actuator Type],
ActuatorOrientation AS [Actuator Orientation],
Illumination,
IlluminationVoltage AS [Illumination Voltage],
IlluminationTypeColour AS [Illumination Type, Colour],
OperatingForce AS [Operating Force],
SwitchTravel AS [Switch Travel],
MechanicalLife AS [Mechanical Life],
SizeDimension AS [Outline],
TemperatureRange AS [Operating Temperature]
FROM dbo.Components
WHERE (ComponentType = 'BUTTON')
AND (ComponentSubType = 'SLIDE')

View File

@ -1,14 +1,48 @@
CREATE VIEW dbo.[Button - Tactile]
AS
SELECT TOP (100) PERCENT PartId, Value, Comment, MfrPartNo AS [Part Number], Manufacturer, Description, Supplier1 AS [Supplier 1], Supplier1PartNo AS [Supplier Part Number 1], FootprintRef AS [Footprint Ref],
FootprintPath AS [Footprint Path], SymbolRef AS [Library Ref], SymbolPath AS [Library Path], ComponentLink1Description, ComponentLink1URL, ComponentLink2Description, ComponentLink2URL,
ComponentLink3Description, ComponentLink3URL, Supplier2 AS [Supplier 2], Supplier2PartNo AS [Supplier Part Number 2], FootprintRef2 AS [Footprint Ref 2], FootprintPath2 AS [Footprint Path 2],
FootprintRef3 AS [Footprint Ref 3], FootprintPath3 AS [Footprint Path 3], Price, Type, DevicePackage AS [Device Package], Series, Circuit, SwitchFunction AS [Switch Function],
ContactRatingAtVoltage AS [Contact Rating @ Voltage], ActuatorType AS [Actuator Type], ActuatorOrientation AS [Actuator Orientation], Illumination, IlluminationVoltage AS [Illumination Voltage],
IlluminationTypeColour AS [Illumination Type, Colour], OperatingForce AS [Operating Force], SwitchTravel AS [Switch Travel], MechanicalLife AS [Mechanical Life],
TemperatureRange AS [Operating Temperature]
FROM dbo.Components
WHERE (ComponentType = 'BUTTON') AND (ComponentSubType = 'TACT')
CREATE VIEW [dbo].[Button - Tactile] AS
SELECT TOP (100) PERCENT PartId,
Value,
COMMENT,
MfrPartNo AS [Part Number],
Manufacturer,
Description,
Supplier1 AS [Supplier 1],
Supplier1PartNo AS [Supplier Part Number 1],
FootprintRef AS [Footprint Ref],
FootprintPath AS [Footprint Path],
SymbolRef AS [Library Ref],
SymbolPath AS [Library Path],
ComponentLink1Description,
ComponentLink1URL,
ComponentLink2Description,
ComponentLink2URL,
ComponentLink3Description,
ComponentLink3URL,
Supplier2 AS [Supplier 2],
Supplier2PartNo AS [Supplier Part Number 2],
FootprintRef2 AS [Footprint Ref 2],
FootprintPath2 AS [Footprint Path 2],
FootprintRef3 AS [Footprint Ref 3],
FootprintPath3 AS [Footprint Path 3],
Price,
TYPE,
DevicePackage AS [Device Package],
Series,
Circuit,
SwitchFunction AS [Switch Function],
ContactRatingAtVoltage AS [Contact Rating @ Voltage],
ActuatorType AS [Actuator Type],
ActuatorOrientation AS [Actuator Orientation],
Illumination,
IlluminationVoltage AS [Illumination Voltage],
IlluminationTypeColour AS [Illumination Type, Colour],
OperatingForce AS [Operating Force],
SwitchTravel AS [Switch Travel],
MechanicalLife AS [Mechanical Life],
SizeDimension AS [Outline],
TemperatureRange AS [Operating Temperature]
FROM dbo.Components
WHERE (ComponentType = 'BUTTON')
AND (ComponentSubType = 'TACT')
GO
EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =

Binary file not shown.

View File

@ -140,5 +140,7 @@
<Build Include="Views\Interface - Ethernet.sql" />
<Build Include="Views\Interface - CAN.sql" />
<Build Include="Views\Connector - RF.sql" />
<Build Include="Views\Button - Slide.sql" />
<Build Include="Views\Button - Push.sql" />
</ItemGroup>
</Project>