Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

a custom button but no idea how to set up

Status
Not open for further replies.

shadow

Computer
Mar 1, 2001
321
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
 
Replies continue below

Recommended for you

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
 
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
 
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
 
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
 
^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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor