02-28-2020
06:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
02-28-2020
06:22 AM
Pick a attribute from a component in a drawing of an assembly
Hello,
I have a drawing with a assembly in, where I'm trying to put dimensions automatically.
I'm using attribute to pick up face from my assembly to attach dimension.
My problem is :
Some component are removed or added again depending of parameters, and the attribute I put on these component are broken when these components are removed and added again.
So I can't retrieved these attributes in my rules to put dimension.
I have thinking to put the attribute directly in my part, and use it in my drawing rule.
I have written this code but this doesn't work.
Dim compOcc As PartDocument
compOcc = Component.InventorComponent("cadre:1")
Dim aoEdge4 As Face
oObjs = compOcc.AttributeManager.FindObjects("DIM", "face_cadr_haut", "1")
aoEdge4 = oObjs.Item(1)
Could you say to me if this is possible , and if yes how ?
Thanks