Page 1 of 1
Diameter/Radius dimension
Posted: 07 Jan 2015, 16:24
by mitzi
Hi there,
I try to create diameter dimension. I set up Flags to 3, DefPoint, RadDefPoint and MiddlePoint to correct values. Dim style and color is also set. But nothing is drawn. Entity is created but has no name (only DIMENSION). Also Box property is empty. The same is for Flags 4,5 etc. I tried set Flags to value 32 added to base value, still the same result. Only Flags 0 and 1 (with appropriate point definitions) are drawn correctly. Where is problem?
And second question. What property TsgDXFDimension.Associated is for? How can i use it?
Thanks.
Re: Diameter/Radius dimension
Posted: 08 Jan 2015, 17:42
by support
Hello,
Unfortunately, CAD VCL doesn't support creating radial and diameter dimensions by using TsgDXFDimension class. TsgDXFDimension.Associated property allows to associate some entity (TsgDXFEntity type value) with a dimension.
Mikhail
Re: Diameter/Radius dimension
Posted: 08 Jan 2015, 18:50
by mitzi
Oh this is very unpleasant. Why don't you mention this fact in your documentation. It is serious issue. How can I dimension diameters, angles etc. then?
Our company has bought CAD VCL recently for creating some CAM app and this causes it almost unusable.
Re: Diameter/Radius dimension
Posted: 08 Jan 2015, 19:55
by support
Hello,
It is possible to create radial dimension by creating dimension line (TsgDXFLine), text (TsgDXFText) and dimension arrow (TsgDXFSolid) and grouping these entities into a block (TsgDXFBlock). But it is a workaround, of course.
Mikhail
Re: Diameter/Radius dimension
Posted: 09 Jan 2015, 09:41
by mitzi
But
1. I cannot apply any dimension style to such entity
2. It cannot be correctly resized like dimension
3. It cannot be associated with dimensioned entity
4. In resulting DXF/DWG it won't be DIMENSION. I cannot distribute such file.
So it is not appropriate alternative.
But CAD VCL can draw diameter/radius/angular dimensions correctly (gasket.dwg). So why there is problem with their creation?
And I also noticed that TsgDXFDimension.Associated property is not saved to DXF/DWG so that object binding is lost after save. Isn't it bug?
Re: Diameter/Radius dimension
Posted: 12 Jan 2015, 18:29
by support
mitzi wrote:And I also noticed that TsgDXFDimension.Associated property is not saved to DXF/DWG so that object binding is lost after save. Isn't it bug?
Definitely it is a bug. TsgDXFDimension.Associated property is not saved to DXF/DWG file in CAD VCL.
Mikhail
Re: Diameter/Radius dimension
Posted: 16 Jan 2015, 12:48
by mitzi
And what about diameter/radius/angular dimensions? Are they planned?
Re: Diameter/Radius dimension
Posted: 16 Jan 2015, 19:37
by support
mitzi wrote:And what about diameter/radius/angular dimensions? Are they planned?
Yes, we are planning to add a support of such dimensions in the next versions.
Mikhail