- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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 !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Muchas gracias Senor!