Fix dimension highlighting problems
Derived all lines from PrimPath
This commit is contained in:
@@ -95,6 +95,7 @@ DrawViewDimension::DrawViewDimension(void)
|
||||
ADD_PROPERTY_TYPE(Fontsize,(4) ,"Format",(App::PropertyType)(App::Prop_None),"Dimension text size in mm");
|
||||
ADD_PROPERTY_TYPE(FormatSpec,("%value%") ,"Format",(App::PropertyType)(App::Prop_None),"Dimension Format");
|
||||
ADD_PROPERTY_TYPE(LineWidth,(0.5) ,"Format",(App::PropertyType)(App::Prop_None),"Dimension line weight");
|
||||
//ADD_PROPERTY_TYPE(CentreLines,(0) ,"Format",(App::PropertyType)(App::Prop_None),"Arc Dimension Center Mark");
|
||||
|
||||
Type.setEnums(TypeEnums); //dimension type: length, radius etc
|
||||
ADD_PROPERTY(Type,((long)0));
|
||||
@@ -130,6 +131,7 @@ void DrawViewDimension::onChanged(const App::Property* prop)
|
||||
prop == &Font ||
|
||||
prop == &Fontsize ||
|
||||
prop == &FormatSpec ||
|
||||
//prop == &CentreLines ||
|
||||
prop == &LineWidth) {
|
||||
try {
|
||||
App::DocumentObjectExecReturn *ret = recompute();
|
||||
|
||||
@@ -56,6 +56,7 @@ public:
|
||||
App::PropertyFloat Fontsize;
|
||||
App::PropertyString FormatSpec;
|
||||
App::PropertyFloat LineWidth;
|
||||
//App::PropertyBool CentreLines;
|
||||
|
||||
//TODO: do we need a property for the actual dimension value? how else to access from Py?
|
||||
//wf: expose getValue & getFormatedValue
|
||||
|
||||
Reference in New Issue
Block a user