
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I am trying to introduce some automation into a drawing document (.dwg) of an Assembly
The task to accomplish here is to get the displayName (or even Occurrence.Name) of the component, which is represented in the Drawing document by a drawingCurveSegment
A sample program to illustate what my goals would something like this;
Dim objDrawingDoc as DrawingDocument = ThisApplication.ActiveDocument
Dim objCurrentSheet as Sheet = objDrawingDoc.ActiveSheet
Dim objCurveSegment as DrawingCurveSegment
Set objCurveSegment = objCurrentSheet.SelectSet.Item(1)
msgBox "This component is :" & objCurveSegment.????? (something like ReferencedDocumentDescriptor)
I have given it a number of tries, but have not succeeded.
I found a complete sample code which is intended to do the same task in the Help documentation of Inventor (under Create Ballon), but the copied code has failed. (see attachment for error message)
I have also attahced a copy of the same code.
If anyone can give me an idea/clue for this task that would be awsome.
Thanking you.
Wajih
Solved! Go to Solution.