TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: scottcd on September 30, 2014, 06:26:48 AM

Title: Entmake fitted polyline
Post by: scottcd on September 30, 2014, 06:26:48 AM
Just wondering how to entmake a fitted polyline.

I have it making a polyline through a list of points but not sure how to make it fitted.

Thanks

Scott
Title: Re: Entmake fitted polyline
Post by: ribarm on September 30, 2014, 07:05:04 AM
It's not an answer directly to your question, but maybe it can be of interest...

Check this link :

http://www.cadtutor.net/forum/showthread.php?73857-Creating-straight-lines-on-a-polyline&s=688cf19258ca414915e8264769a14d96

HTH, M.R.
Title: Re: Entmake fitted polyline
Post by: David Bethel on September 30, 2014, 09:51:40 AM
Just wondering how to entmake a fitted polyline.

I have it making a polyline through a list of points but not sure how to make it fitted.

Thanks

Scott

I don't think it would be logical due to the added vertices (70 . 1) in the vertex definitions.   The the polyline must be defined by the control points and then the fit process can be determined. 

Maybe (entmake) the pline with the control point list and then (command "_.PEDIT" (entlast) "_Fit" "_X")

-David
Title: Re: Entmake fitted polyline
Post by: scottcd on October 01, 2014, 08:54:15 AM
Thanks for the solution.

I couldn't get it to work for some strange reason as I have just upgraded to 2015.

Eventually worked out that I needed to change to "command-s" and it worked perfectly.

Thanks again

Scott
Title: Re: Entmake fitted polyline
Post by: ChrisCarlson on October 01, 2014, 11:39:11 AM
or switch to vl-cmdf
Title: Re: Entmake fitted polyline
Post by: ribarm on October 01, 2014, 11:46:01 AM
or switch to vl-cmdf

vl-cmdf is not the same as command-s... Me thinks that for A2015 you need to use only commans-s and vl-cmdf will fail... Don't know but just loud thinking... I am using A2014... vl-cmdf is used when wanted return after execution of command to be T instead of nil...