CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-31-2012, 03:09 AM
jim78b jim78b is offline
Registered User
 
Join Date: Aug 2012
Posts: 41
change color

how i can quickly change color of an element? i h ave osdrafting v16.
Reply With Quote
  #2  
Old 10-31-2012, 04:57 AM
Friedly's Avatar
Friedly Friedly is offline
Registered User
 
Join Date: May 2012
Location: Belgium
Posts: 76
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.
Reply With Quote
  #3  
Old 10-31-2012, 09:38 AM
jim78b jim78b is offline
Registered User
 
Join Date: Aug 2012
Posts: 41
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?
Reply With Quote
  #4  
Old 10-31-2012, 11:40 AM
Friedly's Avatar
Friedly Friedly is offline
Registered User
 
Join Date: May 2012
Location: Belgium
Posts: 76
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
Attached Files
File Type: m Change_color_and_linetype.m (232 Bytes, 495 views)
Reply With Quote
  #5  
Old 10-31-2012, 08:13 PM
jim78b jim78b is offline
Registered User
 
Join Date: Aug 2012
Posts: 41
Re: change color

i create button from the command row? excuse me but i don t expert in programming!
Reply With Quote
  #6  
Old 10-31-2012, 11:44 PM
jim78b jim78b is offline
Registered User
 
Join Date: Aug 2012
Posts: 41
Re: change color

how can i load your macro from button?
Reply With Quote
  #7  
Old 11-01-2012, 03:41 AM
Friedly's Avatar
Friedly Friedly is offline
Registered User
 
Join Date: May 2012
Location: Belgium
Posts: 76
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
Attached Thumbnails
Click image for larger version

Name:	create_button_step1.jpg
Views:	485
Size:	65.1 KB
ID:	1868   Click image for larger version

Name:	create_button_step2.jpg
Views:	491
Size:	56.3 KB
ID:	1869   Click image for larger version

Name:	create_button_step3.jpg
Views:	485
Size:	77.9 KB
ID:	1870   Click image for larger version

Name:	create_button_step4.jpg
Views:	532
Size:	41.7 KB
ID:	1871  
Reply With Quote
  #8  
Old 11-01-2012, 08:58 AM
jim78b jim78b is offline
Registered User
 
Join Date: Aug 2012
Posts: 41
Re: change color

oh thanks very much i need some times for make it however thanks a lot!!
Reply With Quote
  #9  
Old 11-01-2012, 11:58 PM
jim78b jim78b is offline
Registered User
 
Join Date: Aug 2012
Posts: 41
Smile 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
Reply With Quote
  #10  
Old 11-02-2012, 12:09 AM
Friedly's Avatar
Friedly Friedly is offline
Registered User
 
Join Date: May 2012
Location: Belgium
Posts: 76
Re: change color

hi, for a line you need 2 points
Reply With Quote
  #11  
Old 11-02-2012, 12:39 AM
jim78b jim78b is offline
Registered User
 
Join Date: Aug 2012
Posts: 41
Smile Re: change color

i put

LINE Assistance TWO_PTS

but it doesn't work!

have patience for me !
Reply With Quote
  #12  
Old 11-02-2012, 12:53 AM
Friedly's Avatar
Friedly Friedly is offline
Registered User
 
Join Date: May 2012
Location: Belgium
Posts: 76
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
Reply With Quote
  #13  
Old 11-02-2012, 02:29 AM
jim78b jim78b is offline
Registered User
 
Join Date: Aug 2012
Posts: 41
Smile 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
Reply With Quote
  #14  
Old 11-02-2012, 02:31 AM
jim78b jim78b is offline
Registered User
 
Join Date: Aug 2012
Posts: 41
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,
Reply With Quote
  #15  
Old 11-02-2012, 05:21 AM
Friedly's Avatar
Friedly Friedly is offline
Registered User
 
Join Date: May 2012
Location: Belgium
Posts: 76
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:14 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
You Rated this Thread: