Programmatically modifying iLogic form labels

Programmatically modifying iLogic form labels

YvesGingras
Contributor Contributor
1,000 Views
4 Replies
Message 1 of 5

Programmatically modifying iLogic form labels

YvesGingras
Contributor
Contributor

Hi,

 

Is there a way to change the label of an iLogic form parameter field. The idea being to use the same form for users reading different languages.

 

Thanks.

0 Likes
1,001 Views
4 Replies
Replies (4)
Message 2 of 5

MechMachineMan
Advisor
Advisor

I don't think so.

 

But you can set the label to pull a parameter's value in the file, so that looks like it might be your only option -- to have the form labels based off of a parameter in the part/drawing/assembly, and change the value of that parameter based on the language settings.


--------------------------------------
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 3 of 5

Owner2229
Advisor
Advisor

MechMachineMan is right. The parameter way is kinda uncanny, as you'll need these parameters in every part/assembly you want to use it in.

 

If the form is somehow final, you're not planing changing it and the languages aren't many you can use this instead:

1) Finish your Form with one languange and save it as GLOBAL FORM.

2) Go to your DesignData folder and there to "iLogic\UI", standartly "C:\Users\Public\Documents\Autodesk\Inventor 2016\Design Data\iLogic\UI".

3) Copy your form ("FormNameEN.xml") to something like "FormNameDE.xml"

4) Change the language in the new file.

5) Create a global rule that will open the form based on the Inventor's language settings.

 

Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods
Message 4 of 5

YvesGingras
Contributor
Contributor

Hi Justin, Mike

 

Thank you for replying...

 

Actually what i meant is changing the text of the "parameter" that comes by default with the parameter and that can be edited, not the label object available the iLogic form editor "toolbox". Sorry if I was not clear enough...

 

Also, there are many forms that I would need to duplicate...

 

So I started to work on a solution based on .NET to display forms and change controls text at runtime.

 

Thanks!

0 Likes
Message 5 of 5

cencinaNB2ET
Advocate
Advocate

I think You came across the same issue as me.

I believe writing the forms in XML should do it.

the only problem I have is the <BitmapByteArray> it seems to be different all the time.

Just open a global form inspect in XML and then insert it Ilogic to write and re create them changing the parameters.

 

I think you can now easily write XML with ilogic

 

https://forums.autodesk.com/t5/inventor-customization/ilogic-export-to-xml/td-p/7482441

 

 

 

0 Likes