Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Curtis_Waguespack
in reply to: Anonymous

Hi @Anonymous,


As Mark.Lancaster mentioned iLogic is a based in VB.net.

 

Here is a resource link that might be helpful:

https://www.autodesk.com/developer-network/platform-technologies/inventor/overview

 

Also just as a tip, you can search and ask programming questions of this type on the Inventor Customization forum :
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

As for your question, assuming that X, Y and Z are local variable and not parameters, then you can set them to be whatever data type you want. However, using those variables later might cause issue if you mix data types.

 

If "--" is just meant to be a blank value,  and you are setting a string or local variable in your code to be blank, then you might consider using "" as well.

 

If X, Y, and X are a numeric data type such as a Double, then you might need to use:

 

X = Nothing
Y = Nothing
Z = Nothing

 

If you have a numeric Parameter and set it to Nothing, it gets set to zero, which might or might not work for your needs. If it is a model parameter setting it to value can often cause a sketch dimension to flip and go in the opposite direction when it is set to zero and then set back to a positive number, so there are ways to deal with that, that involve creating work planes, which are projected into the sketch, and then driaving the work plane to update the projected geometry in the sketch.

 

But I'm sort of guessing at what you might be trying to do, so a more complete explanation of your goals with the code, and even some example files attached to a new topic on the Inventor Customization forum might get you a more direct answer.

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com