Assistance in fixing issue in A2p WB needed

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
toralf
Posts: 33
Joined: Fri May 03, 2019 3:54 am

Assistance in fixing issue in A2p WB needed

Postby toralf » Fri May 24, 2019 7:15 am

Dear all,

I'm fairly new to FreeCAD and have found an issue with the A2p WB.
Since the whole subject interests me, I would like to fix it myself. But I need some assistance.
Mainly ì need help on:
  • where to look in the a2p code (i have just started to learn python but I'm already able to read and understand most of the a2p code and I have forked and cloned the project to my pc).
  • And which functions could be used in FreeCAD to solve certain topics, once I have fully understood the code.
So please bear with me. Hints and directions should usually be sufficient.

If this topic would be better placed in the "Assembly" section or any other section of the forum, please give me a hint and I or a moderator should be able to move it.

The issue I have found:
When FC doc gets saved with transpareny off, all is ok,
but when FC doc gets saved with transparency on and FC
is closed and on the next call the A2P assembly is opened
the toggle of transparency doesn't work any more.
transparency is processed in a2plib and I understand the code.

At first I would like to understand which a2p class.function gets called when a FC doc gets loaded and the a2p WB gets activated or is activated?
Any hint?

Thanks a lot in advance.
User avatar
HarryGeier
Posts: 1165
Joined: Mon Jul 10, 2017 12:36 pm
Location: Hof Germany

Re: Assistance in fixing issue in A2p WB needed

Postby HarryGeier » Fri May 24, 2019 8:04 am

Hello,

Hook in here, and contact the author of a2plus...

https://forum.freecadweb.org/viewtopic.php?f=20&t=29207
Kaum macht man´s richtig , gehts´s
My Video Tutorials on Youtube: https://www.youtube.com/channel/UCoe3B ... p8Q/videos
My FreeCAD Stuff on Hidrive: https://my.hidrive.com/share/qr3l1yddy6#$/
User avatar
dcapeletti
Posts: 388
Joined: Wed Jul 23, 2014 2:27 pm

Re: Assistance in fixing issue in A2p WB needed

Postby dcapeletti » Fri May 24, 2019 10:41 am

Hello,
when you import an object with A2plus and change the transparency in the imported object, it will only work in that freecad instance. When you close FreeCAD and open the file, transparency will not be activated.

Now if you change the transparency in the object properties, when you import it, the transparency will always be activated.

Greetings
toralf
Posts: 33
Joined: Fri May 03, 2019 3:54 am

Re: Assistance in fixing issue in A2p WB needed

Postby toralf » Fri May 24, 2019 11:20 am

dcapeletti wrote:
Fri May 24, 2019 10:41 am
Now if you change the transparency in the object properties, when you import it, the transparency will always be activated.
That’s what I expected as well, but in the cases i analyzed the color/transparency is original color/transparency, but the transparency can not be activated via the A2p WB.