-
Hey all, First off, from what I've read through the documentation this is going to work fantastically for me should I ever figure out how to run it. Currently I am getting the following error.
I'm trying to use Jupyter due to being a novice, but it appears that it is recognizing the path I just don't know why it won't recognize the geometry in the file. Unfortunately I cannot attach a DXF file, but it is literally a square drawn with linked polylines centered at the origin of the file. My goal eventually is to be able to draw the current condition beam and then draw seperate shapes for the reinforcement. EDIT: Below is the error trying to recreate on a different machine.
The file is saved in the same folder as the drawing. I've attached a text file. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 30 replies
-
@EngDM I noticed over in #185 that you might be able to post the .dxf file as a .txt successfully. Best of luck! |
Beta Was this translation helpful? Give feedback.
-
Hi @EngDM, as @jonathanweinberg mentioned it would be great if you could upload your If you could also post your code here that will help with the debugging :) I'm sure we'll be able to get it working for you! |
Beta Was this translation helpful? Give feedback.
-
Think cad-to-shapely fixed. v0.3.1 on pypi so ought to show up in @EngDM's DXF file was using @EngDM (and anyone else with DXF import issues) if u have (further) problems, trying saving as older DXF version in AutoCAD (or whatever). But still flag issue up! Best flagged up on on cad-to-shapely repo. Also 13000 lines in DXF file was cos there were hatches embedded in file in raster (tif) format. Not an issue, per se, but there might be a 'save small' or similar option to strip this stuff out. |
Beta Was this translation helpful? Give feedback.
-
i'll take a look - will be something simple/stupid that I did waaaay back.
…On Fri, 22 Jul 2022 at 17:13, Robbie van Leeuwen ***@***.***> wrote:
I've investigated this after installing the dev branch from cad-to-shapely
to handle the circles.
Looking at geometry.py
<https://github.com/robbievanleeuwen/section-properties/blob/master/sectionproperties/pre/geometry.py#L1831>,
cad-to-shapely successfully imports all the polygons at line 1831.
However after calling the cad-to-shapely function
c2s.utils.find_holes(polygons) the two circles are removed.
Perhaps this is because the circles are not connected to the top hat
section and you aren't supposed to be using *sectionproperties* on
unconnected sections (see warning here
<https://sectionproperties.readthedocs.io/en/latest/rst/analysis.html#warping-analysis>
- although geometric & plastic analyses work ok for unconnected sections,
warping analyses do not).
@aegis1980 <https://github.com/aegis1980> was this a design decision for
cad-to-shapely or is there a way to get the find_holes() function to keep
the unconnected geometries?
—
Reply to this email directly, view it on GitHub
<#229 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABAWEPHD7PBHUGM7BL4A3IDVVIUX3ANCNFSM52A24NJA>
.
You are receiving this because you were mentioned.Message ID:
<robbievanleeuwen/section-properties/repo-discussions/229/comments/3203294
@github.com>
|
Beta Was this translation helpful? Give feedback.
Think cad-to-shapely fixed. v0.3.1 on pypi so ought to show up in
section-properties
soon enough once bots have done their thing.@EngDM's DXF file was using
LWPOLYGON
entity to describe top-hat geometry. Its a lighter weight version of 'heavy' older POLYGON and in newer DXF versions. I had not come across it yet and only really implement thing as they come up.@EngDM (and anyone else with DXF import issues) if u have (further) problems, trying saving as older DXF version in AutoCAD (or whatever). But still flag issue up! Best flagged up on on cad-to-shapely repo.
Also 13000 lines in DXF file was cos there were hatches embedded in file in raster (tif) format. Not an issue, per se, but the…