p7q Posted yesterday at 08:01 AM Author Posted yesterday at 08:01 AM 22 hours ago, Steven P said: That's strange, in my testing it works as I expected. Are you able to post a sample drawing with an arc that rotates? Going to look at the other object types sometime today for you. There is a list at the top of 'Flatten Lines' that work at the moment for info. Thanks for interest. you can try this dwg also. I 'm waiting yours code. arc.dwg Quote
p7q Posted yesterday at 08:04 AM Author Posted yesterday at 08:04 AM 17 hours ago, mhupp said: Then something wasn't created or modified. aka trying to exploding a invalid or corrupted region, or one that is on a locked layer. maybe run audit and purge before and then check if entity is on a locked layers. -Edit Writing lisp isn't the hard part. figuring out all the different things that could go wrong and how to handle that is the hard part. had a user that would always select things with the crossing selection option(bottom right to top left) and complain about how my lisp was picking up things "outside" what they where selecting. I'm sure I did because I tried exploding an object. But it didn't fill. There must be an error somewhere, but I couldn't find it, so I tried another method. Also, I'm a new programmer and I started writing lips without knowing anything about ACAD, so it was extra difficult. I'm glad this forum exists :))) 1 Quote
p7q Posted yesterday at 08:13 AM Author Posted yesterday at 08:13 AM 18 hours ago, Isaac26a said: I found it making a google research is at: https://sites.google.com/site/cadkits/home/chz20 And I don't know if this is of some help ı tried but dindt work for arc. But thanks for interest Quote
Steven P Posted yesterday at 08:26 AM Posted yesterday at 08:26 AM arcs in this case will need to be converted to ellipses to display properly.. something to think about 1 Quote
Isaac26a Posted yesterday at 03:46 PM Posted yesterday at 03:46 PM (edited) 7 hours ago, Steven P said: arcs in this case will need to be converted to ellipses to display properly.. something to think about As Steven P said, your arcs in order to keep the same display or look should be converted to ellipses or splines, because they are in 3d and to be displayed in 2d should be converted because they're not plain sections of circles as an arc in 2d is meant to be, that's why most of the codes don't apply to what you want Edited yesterday at 03:49 PM by Isaac26a Typos 1 Quote
Danielm103 Posted 4 hours ago Posted 4 hours ago see if this drawing is correct. I used project from pyrx import Ap, Ax, Db, Ge # register command @Ap.Command() def doit(): try: db = Db.curDb() ms = db.modelSpace(Db.OpenMode.kForWrite) plane = Ge.Plane(Ge.Point3d.kOrigin,Ge.Vector3d.kZAxis) for id in ms.objectIds(Db.Curve.desc()): dbc = Db.Curve(id) gec = dbc.getAcGeCurve() geproj = gec.project(plane,Ge.Vector3d.kZAxis) if not geproj.isKindOf(Ge.kCurve3d): continue geprojCurve = Ge.Curve3d.cast(geproj) dbproj = Db.Core.convertGelibCurveToAcDbCurve(geprojCurve) ms.appendAcDbEntity(dbproj) dbproj.setColorIndex(1) except Exception as err: print(err) arc2.dwg Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.