Search found 91 matches
- Wed Jul 15, 2020 5:01 pm
- Forum: Developers corner
- Topic: Shape.replaceShape() breaks Shape and confuses Shape.check()
- Replies: 32
- Views: 5185
Shape.replaceShape() breaks Shape and confuses Shape.check()
Hi, it seems any Shape I change with replaceShape() becomes invalid. The attached document as an almost minimal example. I start with a document that contains just one shape. In my case it is a face. Then I have something like this in the python console: >>> r = FreeCAD.ActiveDocument >>> r.Shape.Sh...
- Wed Jul 08, 2020 6:12 pm
- Forum: Draft, Arch & BIM
- Topic: Ticket #6091 - Space object doesn't work with non-convex models
- Replies: 5
- Views: 1844
Re: Space object doesn't work with non-convex models
Alright, opened a ticket for this, so it isn't forgotten: https://tracker.freecadweb.org/view.php?id=4404
- Tue Jul 07, 2020 2:16 pm
- Forum: Draft, Arch & BIM
- Topic: Finding objects based on GUID
- Replies: 9
- Views: 1435
Re: Finding objects based on GUID
Sure, I can do that, but it will be very slow on big files.
However I guess this answers my question: There is no such function yet.
However I guess this answers my question: There is no such function yet.
- Thu Jul 02, 2020 4:26 pm
- Forum: Draft, Arch & BIM
- Topic: Finding objects based on GUID
- Replies: 9
- Views: 1435
Re: Finding objects based on GUID
What I want to do right now is process data from other BIM applications, that don't know about the object names in FreeCAD document, but know the GUID, because they are working on the same IFC file. But I think pretty much everybody using GlobalIds will want to find objects based on them. Even if it...
- Wed Jul 01, 2020 8:34 pm
- Forum: Draft, Arch & BIM
- Topic: Finding objects based on GUID
- Replies: 9
- Views: 1435
Re: Finding objects based on GUID
Yes, I know how to do this with objects. ;-) But a GlobalId is a property of an object, not an object itself. I have >>> FreeCAD.ActiveDocument.Wall.GlobalId '2Uv8iBq25ChAfktTCU0To2' So suppose I know '2Uv8iBq25ChAfktTCU0To2', but not to which object it belongs. Is there any way to arrive at 'Wall' ...
- Wed Jul 01, 2020 7:52 pm
- Forum: Draft, Arch & BIM
- Topic: Finding objects based on GUID
- Replies: 9
- Views: 1435
- Wed Jul 01, 2020 9:09 am
- Forum: Draft, Arch & BIM
- Topic: Finding objects based on GUID
- Replies: 9
- Views: 1435
Finding objects based on GUID
Is there any function similar to Document::getObjectsByLabel() but working with GUIDs?
Or even more general: Are the any functions yet, which do anything useful with GUIDs?
Or even more general: Are the any functions yet, which do anything useful with GUIDs?
- Sun Jun 28, 2020 9:43 am
- Forum: IFC
- Topic: IFC test files and systematic testing
- Replies: 27
- Views: 26962
Re: IFC test files and systematic testing
About your code, I would not make it a workbench to start. I would try to make the tests first with simple functions first, I agree, that classic unit tests would be preferable. But I see two issues: 1) Such tests would mostly test ifcopenshell functionality, not FreeCAD. 2) It probably requires in...
- Sat Jun 27, 2020 4:25 pm
- Forum: IFC
- Topic: IFC test files and systematic testing
- Replies: 27
- Views: 26962
Re: IFC test files and systematic testing
Just one fast hint. We need to distingish between problems and unit tests of FreeCADs ifc-importer and the ifc-parser IfcOpenShell which is used by FreeCAD. The later ones should go into the repo of IfcOpenShell. I guess crashes and totally broken geometry are usually caused by ifcopenshell while m...
- Sat Jun 27, 2020 10:37 am
- Forum: Draft, Arch & BIM
- Topic: Arch Project duplicates shapes in a very strange way
- Replies: 11
- Views: 1557
Re: Arch Project duplicates shapes in a very strange way
It is true that realthunders PR fixes the immediate problem.
However I wonder, why is the Arch Project a Part::PartFeature? Wouldn't App::FeaturePython be more straight forward and less prone to strange side effects?
However I wonder, why is the Arch Project a Part::PartFeature? Wouldn't App::FeaturePython be more straight forward and less prone to strange side effects?