Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Show Measure.MinimumDistance 'line'

1 REPLY 1
Reply
Message 1 of 2
Richard.Johnson5QM5H
95 Views, 1 Reply

Show Measure.MinimumDistance 'line'

Hi all.

I'm pretty new to iLogic and coding within Inventor and I'm looking for some guidance on how to "Show" the minimum distance line that I call for.

The first image shows the current box I've got to pop up, that gives me some information on what the crane is doing, but more importantly 3 Minimum Distance dimensions between objects that I require.

iLogic_001.JPG
What I'd like it to do when I run the rule, and bring up the box above, is to also show the Minimum Distance line as shown below when you manually do a minimum distance measurement

iLogic_002.JPG

Please find below my very simple basic code.

MPTOLEG = Measure.MinimumDistance("Monopile - A:1", "LEG_Simplify_1:1") 
MPTOBOOMWINCH = Measure.MinimumDistance("Monopile - A:1", "CraneMeasure_001:1") 
MPTOBOOM = Measure.MinimumDistance("Monopile - A:1", "CraneMeasure_002:1")

MessageBox.Show("CRANE SLEW = " & CRANESLEW & vbLf & "CRANE RADIUS = " & CRANERADIUS & vbLf & "MP TO DECK = " & MPTODECK & vbLf & "MP TO BOOM = " & MPTOBOOMANGLE & vbLf & vbLf & "MP TO LEG = " & MPTOLEG.ToString & vbLf & "MP TO BOOM WINCH = " & MPTOBOOMWINCH.ToString & vbLf & "MP TO BOOM = " & MPTOBOOM.ToString(), "STEP - " & CURRENTSTEP) 







 Thanks for taking the time to read the above.


1 REPLY 1
Message 2 of 2

There is no easy way to do it. You can look at Client Graphics - Line API Sample for more information.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report