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

iLogic - set Exportparameter

Uwe_Lindner
Collaborator

iLogic - set Exportparameter

Uwe_Lindner
Collaborator
Collaborator

Hallo Forum,

wie kann ich beim erstellen von benutzerdefinierten Parametern den Schalter für den Exportparameter setzen?

Wenn ich über eine Regel einen Parameter erzeuge, dann ist die Wahlbox zum Exportparameter leer.

Exportparameter.JPG

0 Likes
Reply
Accepted solutions (1)
466 Views
3 Replies
Replies (3)

bradeneuropeArthur
Mentor
Mentor

Hi @Uwe_Lindner 

 

I don't understand what you mean!

could you please explain a little more in detail.

German is no problem for me but for the forum maybe it is..

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

0 Likes

Sergio.D.Suárez
Mentor
Mentor
Accepted solution

Hi, below is an example of a code that creates a custom parameter in a file.
I think the answer to what you ask is in the red line of the code

 

Dim ParamName As String = "A1"
ThisDoc.Document.ComponentDefinition.Parameters.UserParameters.AddByExpression(ParamName, "100", "mm")
oParam = ThisDoc.Document.ComponentDefinition.Parameters.UserParameters.Item(ParamName)'get the parameter
oParam.ExposedAsProperty = True'export the paramter as an iProperty
oParam.CustomPropertyFormat.PropertyType=Inventor.CustomPropertyTypeEnum.kTextPropertyType'kNumberPropertyType
oParam.CustomPropertyFormat.Precision=Inventor.CustomPropertyPrecisionEnum.kZeroDecimalPlacePrecision'kThreeDecimalPlacesPrecision
oParam.CustomPropertyFormat.ShowUnitsString=False
oParam.CustomPropertyFormat.ShowTrailingZeros = False
oParam.CustomPropertyFormat.ShowLeadingZeros = False

 I hope this helps greetings


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

Uwe_Lindner
Collaborator
Collaborator
0 Likes