- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
In short: I am trying to get a custom anotation in an assembly drawing which shows the ifeature name [Picture: black box] from within a part and a userparameter[Picture:red box] (the level)stored within the part that the ifeature is in.
So I want to be able to select a feature (or a DrawingCurveSegment) from within a section view and have an annotation leader attatched to the line which containts the name of the ifeature ( as show in the model browser A/B/C/D) aswell as the level of the feature which is stured inside the user parameters of the part that contains the ifeature.
What i have tried:
I am able to get the part name with
oLine = ThisApplication.CommandManager.Pick(electionFilterEnum.kDrawingCurveSegmentFilter, "Select a line")
oLine.Parent.ModelGeometry.Parent.Parent
So i would be able to use this to find the user parameters.
If i remove 1 parent i only get the Solid and am not able to reach the feature.
I am struggeling to reach the name and the parameters of the ifeature, frow within the drawing.
The line below works from within the part but not from within the drawing.
oFeat = ThisApplication.CommandManager.Pick(electionFilterEnum.kPartFeatureFilter, "Select a Feature")
Any help or leads would greatly be apreciated!
Many thanks!
Edit: i am not able to share the files of this project but it is straigh forward and I would be able to provide a dummy file.
Solved! Go to Solution.