×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

a custom button but no idea how to set up

a custom button but no idea how to set up

a custom button but no idea how to set up

(OP)
well this is kinda a multi part question first im trying to set up a button to change a selected object to a set layer or the layer of another object

but the other question i have is what would be easier
a lsp that
offsets a lin 6" then shortens it by 1.5" on each end and setting it to a perticular layer

or a button that allows the person to do this one thing at a time

if everyone helps everybody the world will be a better place

RE: a custom button but no idea how to set up

(OP)
ok so i have a button the macro is

^C^Cselect;\_offset;(offset distance needed);_change;p;p;la;(getvar(CLAYER));

the last part i think is what is not working maybe i have the sintax wrong coould some one give me a hand
im thinking instead of getvar it should be setvar there am i right

if everyone helps everybody the world will be a better place

RE: a custom button but no idea how to set up

(OP)
ok i figured it out yeaa i feel so much better it was

^C^Cselect;\_offset;(offset distance needed);_change;p;p;la;(getvar"CLAYER");

so now it works yeaa if someone sees somthing wrong even now let me know

if everyone helps everybody the world will be a better place

RE: a custom button but no idea how to set up

(OP)
well i spoke 2 soon works great with one object at a time but if i select multi objects it doesnt like it
i cant figure it out do i need to tell it to clear the selection set at the end of my macro

if everyone helps everybody the world will be a better place

RE: a custom button but no idea how to set up

(OP)
well it took me a few seconds but it was worth it here is the macro now

^C^Cselect;\;_change;p;;p;la;(getvar"CLAYER");;

it only changes the layer of the selected objects to the current layer im still working on getting it to do the offset

if everyone helps everybody the world will be a better place

RE: a custom button but no idea how to set up

(OP)
^C^Coffset;6";\\;_change;L;;p;la;(getvar"CLAYER");;

well here it is the real thing this time i think so far i can only get it to do 1 offset at a time cause the offset command looks for only one object at a time so picking a selection set wont work but if anone wants it there it is oh and if you want to know the macro for just changeing an object(s) to the current layer here it is tooo

^C^Cselect;\_change;P;;p;la;(getvar "clayer");;

if everyone helps everybody the world will be a better place

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources