Changing the properties of a custom parameter

Changing the properties of a custom parameter

JorisSteurs1246
Advocate Advocate
1,053 Views
5 Replies
Message 1 of 6

Changing the properties of a custom parameter

JorisSteurs1246
Advocate
Advocate

I need to change the properties of the custom parameter G_L by unchecking the leading and trailing and units string checkbox and also presision set to 1.1 ( screenshot attached)

I have to do this for about 250 files, so I'm not eager to do this manual.

 

Any suggestions, iLogic maybe ???

 

Thanks 

 

Joris

 

0 Likes
Accepted solutions (1)
1,054 Views
5 Replies
Replies (5)
Message 2 of 6

JorisSteurs1246
Advocate
Advocate

I know already that with design assistant I can copy over my modifyed custom property to other files , but this will also copy over the value of the modifyed custom property. In my parts the value is linked to an exported parameter , also called G_L and the values should stay in sync. Uncheck and check again the export box  in tthe parameter UI will bring them in sync again but this will make the the custom Iproperty settings back to defaults with its trailing and leading zeros etc that will bring me again to square one.

0 Likes
Message 3 of 6

MechMachineMan
Advisor
Advisor

Yes, it is quite possible with iLogic

 

Yes, if you wish to format the parameter, it must remain exposed as property/marked for export.

 

Yes, there are other posts that have all of the information you need elsewhere on the forums.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 4 of 6

JorisSteurs1246
Advocate
Advocate

Been looking around quite some time and I find many posts around custom Iprops but they only talk about creating them and setting their value but never about setting the properties of the custom Iprop. Smiley Sad

0 Likes
Message 5 of 6

MechMachineMan
Advisor
Advisor
Accepted solution
If the Custom iProp is just the exported parameter, then it takes the format that you set for the parameter in the parameter window.

If you want to have the format of the custom iProp and Parameter be different, you need to find yourself a genie in a bottle..... or create ANOTHER parameter that you can format and export as desired.

--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 6 of 6

JorisSteurs1246
Advocate
Advocate

Thanks for guiding me around Justin, 

 

By accident I think I just found a genie in a bottle under this post.

 

https://forums.autodesk.com/t5/inventor-general-discussion/ilogic-rule-to-change-parameter-values/td...

 

As good as I understand it they manage to format the custom properties in this code.

 

I think I might find most of what I need there  to puzzle my thing together.

 

0 Likes