error message when trying to change LOD from idw file

error message when trying to change LOD from idw file

Anonymous
Not applicable
410 Views
3 Replies
Message 1 of 4

error message when trying to change LOD from idw file

Anonymous
Not applicable

does anyone know why this error message pops up when I am changing LOD from idw file? (the LOD is in one of the assembly files)

 

ERROR MESSAGE.PNG

 

 

0 Likes
411 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

PS: I am trying to use ilogic to change the LOD, so I dont have to go into view properties to change it.

0 Likes
Message 3 of 4

MechMachineMan
Advisor
Advisor

You read the error stack from the bottom up.

 

It's saying that when you try to change one of the dynamic parameters there is an error.

 

Without your code, we cannot tell you much more.


--------------------------------------
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 4

Anonymous
Not applicable

Justin,

 

here is the one line of code in the idw, to transfer the idw parameter to the assembly:

 

SyntaxEditor Code Snippet

Parameter("SUBMITTAL EXPLODED VIEW.iam.Level_of_Detail") = Level_of_Detail

 here is the parameter in the idw, it is multi-valued text, the parameter in the assembly file looks identical to this:

parameter idw.PNG

 

 

 

here is the code in the assembly file, so when I change the parameter, LOD changes.

 

SyntaxEditor Code Snippet

iLogicVb.UpdateWhenDone = True

If Level_of_Detail="FIVE RISERS"Then
ThisApplication.ActiveDocument.ComponentDefinition.RepresentationsManager.LevelofDetailRepresentations("FIVE RISERS").Activate
iLogicVb.UpdateWhenDone=True
ThisApplication.ActiveView.Fit
ElseIf Level_of_Detail="FOUR RISERS"Then
ThisApplication.ActiveDocument.ComponentDefinition.RepresentationsManager.LevelofDetailRepresentations("FOUR RISERS").Activate
iLogicVb.UpdateWhenDone=True
ThisApplication.ActiveView.Fit
End If

 

any hint on how to resolve this problem would be appreciated!

0 Likes