#1
|
|||
|
|||
change color
how i can quickly change color of an element? i h ave osdrafting v16.
|
#2
|
||||
|
||||
Re: change color
Hello jim78b
the command is CHANGE_COLOR Exemples: CHANGE_COLOR RED or CHANGE_COLOR RGB_COLOR 1,0.7,0 then pic the element. |
#3
|
|||
|
|||
Re: change color
ok but i want create a button thath pressed change line color and even line type example .red line dashed... am i explicit?
|
#4
|
||||
|
||||
Re: change color
Ok, try this macro.
How to create a button you can see here http://www.cocreateusers.org/forum/showthread.php?t=7994 |
#5
|
|||
|
|||
Re: change color
i create button from the command row? excuse me but i don t expert in programming!
|
#6
|
|||
|
|||
Re: change color
how can i load your macro from button?
|
#7
|
||||
|
||||
Re: change color
at first you have to load the macro.
Commandline INPUT 'C:\path2file\Change_color_and_linetype.m' ENTER now you can test the macro Commandline Change_color_and_linetype ENTER To load the macro automaticly you must edit the file (Standardlocation) 'C:\Program Files\CoCreate\CoCreate Drafting 2008\customize.m' write there { User specific customization } INPUT 'C:\path2file\Change_color_and_linetype.m' save the file Now the button. Setup => Customize => Customize Layout pict1 Create your own toolbar. pict2 Create the button. pict3 Drag en drop the new button to your toolbar. pict4 Hope this helps. Good luck |
#8
|
|||
|
|||
Re: change color
oh thanks very much i need some times for make it however thanks a lot!!
|
#9
|
|||
|
|||
Re: change color
hello all is worked! thanks but i want ask you one more thing....
i want create macro thath draw a white line, i write so: DEFINE linea_bianca LOCAL Pnt1 LOOP READ PNT 'indicare il primo punto della linea o inserire un'opzione' Pnt1 LINE WHITE Pnt1 END END_LOOP END_DEFINE i put it's path on customize.m file when i launch it in me10 it don't draw any line!!! but if i call from command line it works!!!why ???can you help me please? good day |
#10
|
||||
|
||||
Re: change color
hi, for a line you need 2 points
|
#11
|
|||
|
|||
Re: change color
i put
LINE Assistance TWO_PTS but it doesn't work! have patience for me ! |
#12
|
||||
|
||||
Re: change color
>for a line you need 2 points
DEFINE linea_bianca LOCAL Pnt1 LOCAL Pnt2 LOOP READ PNT 'give the 1.point' Pnt1 READ PNT 'give the 2.point' Pnt2 LINE WHITE Pnt1 Pnt2 END END_LOOP END_DEFINE |
#13
|
|||
|
|||
Re: change color
know thath you are very helpfull to me.
i'm ignorant in programming.thanks anyway i could with my goal.good day |
#14
|
|||
|
|||
Re: change color
opps last problem.
i see if a open me10 in a second window macro file is not run why? macro only work into first window, |
#15
|
||||
|
||||
Re: change color
Yes you are right. This manner to launch a new instance seems not to read the customize.m
I would call that a bug. But if you start Drafting a second time with the start icon in Windows everything works as it should. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|