Search the Community
Showing results for tags 'autocad2018'.
-
Illustrator converted dwg - object colors to layer
Shameless1 posted a topic in AutoLISP, Visual LISP & DCL
I’m a longtime reader and cad user, yet first time poster. I have dabbled with creating list routines in the past but it’s been many years. So, it makes more sense for me to search and inquire with those skilled in the arts of lisp creation and object manipulation. I know Lee Mac has done many fine routines with regard to this, but I can’t quite find what I seek. I routinely receive Illustrator drawings that I must export to ACAD. In Illustrator, objects typically have a Stroke and a Fill. When converted to dwg the resulting file has many objects all on “Layer 1” (some are hatch patterns, most are splines or polylines). Some have true color values (RGB) assigned to the objects, others might be indexed, and still some are set to “by layer”. Sometimes, the resulting objects are in a block in the dwg. I usually explode the block to get to the base elements before processing. I would like a routine that explodes the blocks (nested or otherwise), takes all of the objects based on their color values and moves them to a created layer appropriately named with the value, and color based on the value. Then the objects on the layer set back to “By layer”. Additionally, Hatches to be on layer signified with Hatch in the name, and linework on a layer with Linework in the name. (This is for filtering purposes so I can choose to see only hatches, or only linework) Example layer names: “Hatch – (1)”, “Linework – (1)”, “Hatch – (237 28 38)”, “Linework – (237 28 38)”, Further, Objects with color 0,0,0 are typically white in color and should be set to 255,255,255. Black objects 0,0,1 should be 0,0,0. Purge at the end to remove excess unneeded items. I believe a lisp routine that could do all this should be fairly straightforward to many of the lisp guru’s in here. I am also open to other suggested routines that anyone might know of to aid with processing Illustrator converted dwg’s to streamlined and efficient AutoCAD drawings. I have attached a DWG for reference exported from Illustrator. It also includes an attached Image for reference. Ultimately in the end, I isolate linework. Sometimes convert spline to polylines and then trim away overlapping lines to produce clean outlines and hatches without all the overlapping elements, etc. I cannot be the only person that has sought routines for processing dwg conversions from Illustrator in the timeliest manner. I often spend a great deal of time “cleaning up” these converted files. Thanks for any assistance. TigerHead.dwg- 9 replies
-
- lisp code
- conversion
-
(and 2 more)
Tagged with:
-
So the other day I was trying to correct my command speed and someone turned on all of the icon badges and whenever I type a command I like it to show up next to my crosshairs, which it does, but now there is this really weird vertical line that shows up after I start my command. I have no idea how to get rid of it without getting rid of my command box in general. Please help soon!
- 2 replies
-
- crosshairs
- command box
-
(and 2 more)
Tagged with: