iLogic - set Exportparameter

iLogic - set Exportparameter

Uwe_Lindner
Collaborator Collaborator
786 Views
3 Replies
Message 1 of 4

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
Accepted solutions (1)
787 Views
3 Replies
Replies (3)
Message 2 of 4

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 & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


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:
My 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 !


 


EESignature

0 Likes
Message 3 of 4

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

Message 4 of 4

Uwe_Lindner
Collaborator
Collaborator
0 Likes