Jump to content

Multi-select Pline convert to revcloud?


ttray33y

Recommended Posts

I have a selection set already and wanted to convert those polyline to revcloud however the acad revcloud function only allow last or point.

 

it this doable guyz? I tried this in microstation and it did convert those pline to revcloud at once. :D

Link to comment
Share on other sites

Sure you can.

 

 

(defun c:demo ()(if (setq ss (ssget))(repeat (sslength ss)(command-s "_Revcloud" "_Object" (ssname ss 0) "_n")(ssdel (ssname ss 0) ss))))

 

 

But all preparations should be done beforehand like arc length etc...

Link to comment
Share on other sites

Try something like this:

(defun c:mrc ( / c i s )
   (if (setq s (ssget "_:L" '((0 . "ARC,CIRCLE,ELLIPSE,LINE,*POLYLINE,SPLINE"))))
       (progn
           (setq c (getvar 'cmdecho))
           (setvar 'cmdecho 0)
           (repeat (setq i (sslength s))
               (command "_.revcloud" "_o" (ssname s (setq i (1- i))) "")
           )
           (setvar 'cmdecho c)
       )
   )
   (princ)
)

EDIT: pBe beat me to it :)

Link to comment
Share on other sites

I know you did but I cannot find it. I was having trouble with the arcs and you posted something about rev clouds. I don't think I was involved in the thread (just being a creeper). I'll find it

Link to comment
Share on other sites

I know you did but I cannot find it. I was having trouble with the arcs and you posted something about rev clouds. I don't think I was involved in the thread (just being a creeper). I'll find it

 

Maybe this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...