Re: [Pythoncad-developer] Sytile and settings In new kernel
CAD Application entire developed in Python
Status: Beta
Brought to you by:
matteoboscolo
From: Gertwin G. <ger...@gm...> - 2010-05-12 17:42:53
|
Hi Matteo, I don't have a clear view how these styles are applied to the elements in the drawing. In the database the elements have a relation with a layer, the layer triggers how the elements are drawn. So to draw the elements for each layer we need the properties color, line style, thickness, etc. Can you give an example how to retrieve the properties from the Style object? As I understand the style object is stored in the application configuration and not in the drawing, is this correct? What if the drawing contain layers that are not in the application configuration? Maybe you can give some more clarification. Regards, Gertwin 2010/5/12 Matteo Boscolo <mat...@bo...>: > Hi Gertwing, Guys, > > I have finished to implements the new style in the application. > > I would like to discuss with you what the new style object have to contains > and witch stucuture mast have. > > What I goanna do is : > > Have a style object that contains all the style setting like a dictionary .. > > So my class will be some think like this: > > STYLE_KEYWORD=[‘color’,’linetype’,’linethicness’,’textstyle’,’textcolor’………] > > Class Style(GeometricalEntity): > > Def __init__(self,**par): > > Self.__param=par > > Def getParam(self,name): > > #Return the param value > > Def setParam(self,name,value): > > #set the param value > > ….#some other useful method > > I would like to do the some think with the settings object > > The style object could be stored in application Kernel or in the single > document (the user decide which one is the active one. Of course if the user > decide to use an application style, we need to copy it in the active > document .. ) > > The Setting object could be stored in the application Kernel only. > > Let me know What do you think .. > > Or if you have some other idea for the style or application settings in > general .. > > Regards, > > Matteo > > ------------------------------------------------------------------------------ > > > _______________________________________________ > Pythoncad-developer mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncad-developer > > |