- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
After several attempts to create a LISP routine with ChatGPT, I keep getting the following error every time: TLC: bad argument type: stringp nil."
An AutoLISP routine for AutoCAD that creates a new separate Layout for each selected polyline (rectangle) in Model Space, and places a Layout Viewport in each Layout, automatically adjusted to display the entire corresponding rectangle.
Dialog Box
1 Setting
Paper Size:
A3 / A4 / etc.
Orientation:
Landscape
Portrait
2 Scale:
(●) Fit to paper The viewport is automatically zoomed to fit the corresponding rectangle completely within the printable area.
( ) Custom [10] (Model Space unit 1m= 1 cm. Therefore, a scale of 1:100 corresponds correctly to a CustomScale = 10 in the viewport.)
3 Layout Name:
( ) Rectangle text / number
If a TEXT/MTEXT object is located inside the rectangle, its content can be used as the Layout name.
(●) Automatic
Otherwise, use automatic naming such as: TLC-01, TLC-02, TLC-03, etc.
4 Sort
( ) Normal ( ) Left-> Right ( ) top-> Bottom
5 Select Method
( ) Layer [ 0 ] (layers list)
( ) Pick ( select rectangles from model ) PICK
Solved! Go to Solution.
