@ickby: Unfortunatly I got crash which were not existing before rebasing on master. This is the workflow I am using
App::Part *pcPart = NULL;
pcPart = static_cast<App::Part*>(doc->addObject
("App::Part",name.c_str()));
for(int unsigned i=0;i<localValue.size();i++){
pcPart->addObject(localValue);
}
to move object within the Tree into a App::Part.
Porting STEP reader to new Part Design
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- vejmarie
- Posts: 713
- Joined: Mon Jan 04, 2016 4:52 pm
- Location: Somewhere between France, USA and Taiwan
- Contact:
Re: Porting STEP reader to new Part Design
Just opened a bug https://www.freecadweb.org/tracker/view.php?id=2980 don't really know what I could do more , need help guys
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Porting STEP reader to new Part Design
You can bypass the code of addObject by changing Group property of Part directly. As far as I know, ickby is working on fixing this. But I never had it crash on me so far.
Are you totally sure the crash is real? (i.e., did you do a clean build)
I think it may be useful if you attach a step file that triggers the crash.
Are you totally sure the crash is real? (i.e., did you do a clean build)
I think it may be useful if you attach a step file that triggers the crash.