TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Marc'Antonio Alessi on December 03, 2020, 07:14:46 AM
-
For example hide 2 sides of a rectangle? Maybe doing it with a 3Dpolyline?
-
3dface with hidden edge but you will need to use wireframe shading after.
-
3dface with hidden edge but you will need to use wireframe shading after.
Thanks,
question: <entmod on AutoCAD help> > Before performing an entmod on vertex entities, you should read or write the polyline entity's header.
Can anyone explain to me what it means? (I would try to change the vertex layer)
-
Even if it is possible to do this, it will probably create an audit error.
-
Why not just combine the separate polylines as a block or group?
You could cover the line with another that plots white.
Many years ago I remember seeing a hack for the old heavy polylines where each segment was an entity where segments could be modified somehow but even that wouldn't survive an audit. Newer versions of AutoCAD would probably clean it automatically.
-
AcDb3dPolyline has the same structure as the old polylines:
(
(-1 . <Nome entità: 7ff4f94063c0>) (0 . "POLYLINE") (330 . <Nome entità: 7ff4f9403f10>)
(5 . "B4") (100 . "AcDbEntity") (67 . 0) (410 . "Model")
(8 . "0") (100 . "AcDb3dPolyline") (66 . 1) (10 0.0 0.0 0.0)
(70 . 8) (40 . 0.0) (41 . 0.0) (210 0.0 0.0 1.0) (71 . 0) (72 . 0)
(73 . 0) (74 . 0) (75 . 0)
)
(
(-1 . <Nome entità: 7ff4f94063e0>) (0 . "VERTEX") (330 . <Nome entità: 7ff4f94063c0>)
(5 . "B6") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (100 . "AcDbVertex")
(100 . "AcDb3dPolylineVertex") (10 145.673 204.588 0.0)
(40 . 0.0) (41 . 0.0) (42 . 0.0) (70 . 32) (50 . 0.0) (71 . 0) (72 . 0) (73 . 0) (74 . 0)
)
(
(-1 . <Nome entità: 7ff4f94063f0>) (0 . "VERTEX") (330 . <Nome entità: 7ff4f94063c0>)
(5 . "B7") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (100 . "AcDbVertex")
(100 . "AcDb3dPolylineVertex") (10 177.626 176.418 0.0)
(40 . 0.0) (41 . 0.0) (42 . 0.0) (70 . 32) (50 . 0.0) (71 . 0) (72 . 0) (73 . 0) (74 . 0)
)
(
(-1 . <Nome entità: 7ff4f94063d0>) (0 . "SEQEND") (330 . <Nome entità: 7ff4f94063c0>)
(5 . "B5") (100 . "AcDbEntity") (67 . 0) (410 . "Model")
(8 . "0") (-2 . <Nome entità: 7ff4f94063c0>)
)
I found this in .NET https://drive-cad-with-code.blogspot.com/2011/06/showhide-segments-of-polyline-with.html …
-
If I change the visibility of a vertex in BricsCAD V18 there is no audit error, but the modification has no effect.
If I change the color of a vertex there is again no effect, but this modification does result in an audit error for 3D polylines (but strangely enough not for 'heavy' 2D polylines).
I remember an older version of BC that would in fact display the color of a vertex.
-
If I change the visibility of a vertex in BricsCAD V18 there is no audit error, but the modification has no effect.
If I change the color of a vertex there is again no effect, but this modification does result in an audit error.
I remember an older version of BC that would in fact display the color of a vertex.
Thanks for your time, what happens if you change the layer of the vertex(s)? edit:(more vertex)
-
I have edited my previous message while you were posting.
Changing the layer of a vertex has the same result as changing the color:
No visible effect and an audit error for 3D polylines.
-
Ok thanks, there is no possibility of having a *polyline with an invisible segment or with different color and linetype, or layer.
-
You can also do it with a PFace mesh. ( Basically a group of 3dfaces ) They can be made into some very complex shapes -David
-
I apologize for the delay in replying (time zone), this is a typical case that I have to solve:
normally I can calculate the length and area of gutterways and airgaps when the polylines are closed, in the example in addition to being open they are also formed by separate segments.
-
If you can use .NET you can create a custom solution to change the way objects are drawn:
https://www.keanw.com/2009/08/a-simple-overrule-to-change-the-way-autocad-lines-are-displayed-using-net.html
Or here, where polylines are presented as tubes:
https://through-the-interface.typepad.com/through_the_interface/2009/04/customizing-the-display-of-standard-autocad-objects-using-net.html
Or here, where a line looks like a thermometer:
https://adndevblog.typepad.com/autocad/2012/05/draw-overrule-and-grip-overrule-sample.html
The disadvantage is that you don't see it if you've not loaded your custom program.
Maybe you can also mimic things with dynamic blocks and visibility states.
-
If you can use .NET you can create a custom solution to change the way objects are drawn: …
I had seen something like this before, if you see my post #5.
Another question: is possible to "draw" a line (or poly) with linetype hidden (example) that covers the others below?
-
Maybe a solution to show the joint could be a ZigZag line...