Using API in ilogic to get the attached results

Using API in ilogic to get the attached results

J.Oye
Advocate Advocate
262 Views
2 Replies
Message 1 of 3

Using API in ilogic to get the attached results

J.Oye
Advocate
Advocate

Any examples for the API of how to use the CommandManager to select sketch objects (the cut sketch line), then specific points on the surface model, and how to advance the dialog box, then I should be able to piece this together.  This would be my first time accessing the CM for coding, so I'm rather green here.  I've attached the model for clarification, the model starts of with two sketches bottom and upper sketch, then a surface loft is created followed by trimming part of the surface away using a sketch.......After that the surface file is thickened to get end result.

 

This is a customers issue they are having.  (This file is 2022 Invnetor)

0 Likes
263 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

It looks like you and @llorden4 may be on the same project at the same time.  🤔

I know that attempting to do stuff with code while a user interface dialog is being shown for a modeling process is tricky business.  Only a certain set of actions are usually allowed while that type of command is active, or it will end the active command before you are ready for it to end.  I don't have any recent example scenarios of how to do this to post here, but I assume that you would have to add any selections to the Document.SelectSet while the main command is still active, without using any disruptive types of actions/commands in the mean time.  I know of a few commands that can be executed that would simulate advancing a command, like OK, Cancel, Add, but I doubt you could execute another command like that in this situation.  You might be able to use something like SendKeys.SendWait() to send the keyboard equivalent of clicking those buttons in the dialog, but that is not usually a good scenario either.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

llorden4
Collaborator
Collaborator

Yes, Jerry is my local rep also working this issue.  Beat you here, Jerry.   

https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/command-manager-trim-surface/m-p/109018...

Autodesk Inventor Certified Professional
0 Likes