Access AutoCAD Electrical catalog data with iLogic in Inventor drawing

Access AutoCAD Electrical catalog data with iLogic in Inventor drawing

Colbjørn
Enthusiast Enthusiast
1,124 Views
5 Replies
Message 1 of 6

Access AutoCAD Electrical catalog data with iLogic in Inventor drawing

Colbjørn
Enthusiast
Enthusiast

Hi.

 

I have an Assembly which is sync'ed with an AutoCAD Electrical project.

is there any way to get the component tag from the Electrical properties by iLogic?

 

I want to show the component tag from AutoCAD Electrical in the Assembly drawing from Inventor.

 

Colbjørn.

Accepted solutions (1)
1,125 Views
5 Replies
Replies (5)
Message 2 of 6

wayne.brill
Collaborator
Collaborator
Accepted solution

Hi Colbjørn,

 

Here is a reply from a colleague that may help:

 

>> >>

We found out that the Electrical properties does not reside in the iProperties, but rather in the AttributeSet.

We have churned up a piece of code to be used in iLogic which might give you a better idea of how to get the Catalog value:

 

comp = Component.InventorComponent("XCKD2506G11:1") ' Just an example, if your component is XCKD2506G11

attrbSets = comp.AttributeSets

 

attrbSet = attrbSets.Item("com.autodesk.mechatronics")

attrib = attrbSet.Item("Catalog")

 

MsgBox("Catalog is " + attrib.Value)

<< <<

 

Thanks,

Wayne

 

 



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Message 3 of 6

Colbjørn
Enthusiast
Enthusiast

Hi.

 

Thanks for the help this solved my problem.

0 Likes
Message 4 of 6

Anonymous
Not applicable

how to install in a laptop


 


 

 

0 Likes
Message 5 of 6

j.van.dodewaard
Participant
Participant

to me this is acracadabra, could anyone be of any help?

 

I would like to retrieve electrical properties of a part (or assembly) in a IDW balloon.

I have a main assembly in which i would like to realise this....

0 Likes
Message 6 of 6

cameron.florenceJMGNL
Participant
Participant

Hi Wayne

Is it possible to use ilogic to access the component electrical 'TAG No." that ACAD Elect. generates after linking to inventor parts? If so, can that "electrical tag" property then be made into a  "custom" iproperty for use in an Inventor .dwg with a balloon.