CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3284 

CAD tip CAD tip # 11751:

Question CAD 
 %  platform  category 
Q - question

toMulti converts polylines to multi-lines driven by a definition table.

A - answer With the freeware utility toMulti you can convert selected polylines (LWpolyline) to multi-lines (group of polylines) according to a predefined definition table. The resulting line supports (unlike MLine) also line widths, arc segments, and start and end-blocks on the polyline - so it can handle more complex combinations. Alas, it is not associative and editable as an object - the conversion creates a group of individual lines.

The LISP application toMulti can be downloaded from www.cadstudio.cz/download. Unpack the ZIP file (containing the .VLX and .TAB file) to an AutoCAD support path, load the application with APPLOAD and run it by typing the TOMULTI command.

The command prompts to select the polylines and the name of one of the definitions prescribed in the .TAB file (must be accessible in search path). Then it converts selected polylines to multi-lines.

The text file ToMulti.tab can be edited in Notepadu - its format contains the definition names (prefixed with an asterisk) and the respective segments with definitions of the offset (from the original line), color (code or name), line width and linetype. Except for the offset, all parameters are optional. It can also contain names of the start and end-block on the polyline (prefixed with "#") - they must exist in the drawing.
; *DefinitionName1
; offset[,color[,width[,linetype]]]
; offset[,color[,width[,linetype]]]
; [#startBlockName[,#endBlockName]]
; *DefinitionName2
; offset[,color[,width[,linetype]]]
; offset[,color[,width[,linetype]]]
; offset[,color[,width[,linetype]]]
; [#startBlockName[,#endBlockName]]
;
*Fuskic
0.25,30,0.25
-0.25,30,0.25
0,51,0.25
0,1,0.08,Dashed
#circle,#arrow
*SimpleDup
0.25
-0.25

The variable DELOBJ controls deletion of the original (control) polyline.

When you set the LISP variable (setq _toMultiGroup T), the resulting lines will be grouped into an anonymous group (selected as one object).

ACADADTCivilACADMABS
100% *  CAD 
10.1.2018    3845×  

See also:
Tip 12287:AutoCAD hatch flood-fill does not honor all boundaries.
Tip 11794:Undocumented code in field expression - MText contents without control characters.
Tip 11223:Copy multiple DWG drawing texts to the Windows Clipboard.
Tip 11198:Justified attribute text in mirrored blocks (AutoCAD)
Tip 11122:How to insert framed (boxed) text into Inventor drawings?


Back   All CAD Tips All CAD tips&tricks



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info


Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist