InventorLoader icon indicating copy to clipboard operation
InventorLoader copied to clipboard

how to disable dimension constraints

Open sibbi77 opened this issue 3 years ago • 9 comments

The documentation says:

"Please disable Dimension constraints in user.cfg:

<FCBool Name="Sketch.Constraint.Dimension.Angle2Line" Value="0"/>
<FCBool Name="Sketch.Constraint.Dimension.Angle3Point" Value="0"/>

"

but where should I add these lines? The user.cfg is an xml file with, among others: group: <FCParamGroup Name="Sketcher"> and within this group: <FCParamGroup Name="General"> Nothing is spelled like "Sketch.Constraint.[...]"

sibbi77 avatar Aug 23 '20 17:08 sibbi77

Thank you reminding me, that the documentation is not synchronous with the implementation.

Initially it was planned to allow the user to enable or disable constraints in the GUI. Until now I wasn't able to do the implementation, so the preferences got really working. Up to now, whatever is written in the user.cfg file is not interpreted. If someone can help me out with making the properties/ImportExport/IPT stored in the user.cfg file this is no longer necessary! Best regards Jens

jmplonka avatar Jan 04 '21 16:01 jmplonka

@AjinkyaDahale would you have a moment to weigh-in ?

luzpaz avatar Apr 26 '23 02:04 luzpaz

@luzpaz what am I looking at here?

AjinkyaDahale avatar Apr 26 '23 05:04 AjinkyaDahale

@jmplonka Can you specifically point out where in the GUI you'd like to add code that interacts with user.cfg that would be great.

@AjinkyaDahale indeed! We're trying to 'soup up' jmplonka's efforts to improve importing Autodesk file formats. There are some 'hoops' that users need to jump through in order to make that happen. Hopefully this can be more streamlined, hence I pinged you. Thank you for your attention!

luzpaz avatar Apr 26 '23 13:04 luzpaz

This is interesting but the issue needs improvement. The origin seems to be several years old. There's no link to a forum topic or even the documentation in question.

sliptonic avatar Apr 26 '23 15:04 sliptonic

It's in the README: https://github.com/jmplonka/InventorLoader#constraints-in-native-ipt-import

luzpaz avatar Apr 27 '23 03:04 luzpaz

@luzpaz : where can I find an example of how to store user setting from the Preference-Dialog? I want to implement the missing part for Import-Export settings for IPT file types and I only have the PrfsInventorLoader.ui file. Is there any option to do this without c++?

jmplonka avatar May 02 '23 06:05 jmplonka

Is it sufficient (ref. SheetMetal preferences) to add simply:

<property name="prefEntry" stdset="0"><cstring>Sketch.Constraint.Geometric.AlignHorizontal</cstring></property>
<property name="prefPath" stdset="0"><cstring>Mod/InventorLoader</cstring></property>

jmplonka avatar May 02 '23 14:05 jmplonka

I think, I found the trick by replacing QCheckBox by Gui::PrefCheckBox:

<widget class="Gui::PrefCheckBox" name="cbx...">
...
 <property name="prefEntry" stdset="0"><cstring>[Property-Name]...</cstring></property>
 <property name="prefPath" stdset="0"><cstring>Mod/InventorLoader</cstring></property>
</widget>

So the constraints to be imported can be set in Preferences->Import/Export->IPT

jmplonka avatar May 03 '23 07:05 jmplonka