Get reference to GeometyIntent of Dimensions in Drawings

Get reference to GeometyIntent of Dimensions in Drawings

rfink
Enthusiast Enthusiast
1,195 Views
5 Replies
Message 1 of 6

Get reference to GeometyIntent of Dimensions in Drawings

rfink
Enthusiast
Enthusiast

I am trying to get the intent objects of dimensions in a drawing , for example: intentOne and intentTwo of a linear dimension

0 Likes
Accepted solutions (2)
1,196 Views
5 Replies
Replies (5)
Message 2 of 6

MechMachineMan
Advisor
Advisor
Accepted solution

There are calls for that, as outlined in the programming help:

 

http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-99D11108-4414-4A52-8D30-818608D2BAE9

 

Without any more detail, or description of your efforts, there is not much more I can do for you.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 3 of 6

rfink
Enthusiast
Enthusiast
Thanks for the reply.



I am trying to get a persistent reference to the Intent One, Two, etc. of drawing dimensions so that as my model dimensions and active features change due to automation, I can reattach orphaned leader lines.



Problem is that there does not appear to be such a thing as a reference key for Drawing Curves.



RefKey as Byte = oDrawingCurve.GetRefernceKey()


0 Likes
Message 4 of 6

HermJan.Otterman
Advisor
Advisor

maybe you could use attributes.

 

if you work with a skeleton model, use the sketch from the skeleton part in you drawing, put it on a layer, and turn that off. this one always exists.

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes
Message 5 of 6

rfink
Enthusiast
Enthusiast

Herm Jan,

 

Thank you for your reply. I have some questions:

 

1) how do I use the sketch from my skeleton part?

2) do the curves from the sketch have a persistent reference key, or are you saying that the dimesion leader will never be orphaned?

 

Best Regards,

Ross

0 Likes
Message 6 of 6

HermJan.Otterman
Advisor
Advisor
Accepted solution

1, create a view, RMB on the view in the browser, "include model sketches"

 

2, because the lines alway exist, the dimensions wil not be orphaned.

put them on a seperate layer, and turn them off (visibility)

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan