Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am writing a Maxscript program to import Max splines into AutoCAD via a script file. The program creates a .scr file like the following.
(setvar 'osmode 0)
spline
0.0,0.0,0.0
5.0,0.0,0.0
5.0,10.0,0.0
0.0,10.0,0.0
Note that the file ends with two blank lines.
The script assumes that the CV method of spline construction is active. If I cut and paste the above into the AutoCAD command prompt it works fine. However, if I execute the script file, AutoCAD assumes the active method is Fit points. I've tried several variations of including an "m" and "cv" to force the control vertex method for the script but have not been successful.
I tried:
spline m cv
but got the following.
Command: spline
Specify first point or [Object]: m
Point or option keyword required.
Specify first point or [Object]:
Any suggestions? Thanks.
lee.minardi
Solved! Go to Solution.