Help with Autolisp/Macro

Help with Autolisp/Macro

Sujan.Maharjan
Collaborator Collaborator
1,041 Views
5 Replies
Message 1 of 6

Help with Autolisp/Macro

Sujan.Maharjan
Collaborator
Collaborator

I have no knowledge with programming. Anyone any help with any Macro/Autolisp to speed up this process? I posted with screencast here.


"Revit Lies in the tension between what we want to do and what can be done!"
0 Likes
1,042 Views
5 Replies
Replies (5)
Message 2 of 6

john.uhden
Mentor
Mentor

The first thing I noticed was your method of filleting.  You seemed to be pointing to the radius to use.  Why not Fillet;radius?

The second thing is you drew the polyline and then changed its properties.  Why not just set the desired layer first with its color and linetype properties?

I'm sure there is something here to offset to a different layer.  That could save some time.  To write something to wrap it all up would be very helpful, but we here try to help others help themselves rather than doing everything for them.  It's time for you to start learning AutoLisp, make your mistakes, and then ask for help in guiding you to achieve your goals (and improving your skills).  Then you can return the favor by being a contributing member.

John F. Uhden

Message 3 of 6

Sujan.Maharjan
Collaborator
Collaborator
Hi,
I'm not a programmer but trying to start with macro now. I'm willing to improve furthur.
Here my intension was to draw a polyline of desired length(no. of clicks) then fillet with desired radius. I couldn't figure out how do I do that. Is it possible with macro?

"Revit Lies in the tension between what we want to do and what can be done!"
0 Likes
Message 4 of 6

john.uhden
Mentor
Mentor

Command:  Fillet; R; <enter value>; pick two adjacent segments.

 

Okay.  Here's a slightly helpful command function:

 

(defun c:FR ()
  (setvar "cmdecho" 0)
  (command "_.fillet" "_Radius")
  (setvar "cmdecho" 1)
  (while (> (getvar "cmdactive") 0)(command pause))
  (princ)
)

John F. Uhden

0 Likes
Message 5 of 6

Sujan.Maharjan
Collaborator
Collaborator

Hi @john.uhden, this is where i'm now. My main problem with this is double offset only work with "last created object". How to do entire process from single macro?

 


"Revit Lies in the tension between what we want to do and what can be done!"
0 Likes
Message 6 of 6

john.uhden
Mentor
Mentor

Study, trial, and error.  That's mostly how I learned.

John F. Uhden

0 Likes