Width and height of plt
Moderators: SDS, support, admin
Width and height of plt
Can I get real width and height of plt or dwg file? AbsWidth and AbsHeight always return 1.0 (((
Hello,
AbsWidth and AbsHeight must return respective values if file is valid.
Could you please send us your files for testing to support@cadsofttools.com?
Sergey.
Please post questions to the forum or write to support@cadsofttools.com
AbsWidth and AbsHeight must return respective values if file is valid.
Could you please send us your files for testing to support@cadsofttools.com?
Sergey.
Please post questions to the forum or write to support@cadsofttools.com
-
- Posts: 4
- Joined: 21 Oct 2008, 13:53
Re: Width and height of plt
Hello,
Which unit of measurement does AbsWidth and AbsHeight return?
Which unit of measurement does AbsWidth and AbsHeight return?
Re: Width and height of plt
AbsWidth and AbsHeight return CAD units. These values are being counted basing on entities' coordinates as they are in CAD file.
Sergey.
Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 4
- Joined: 21 Oct 2008, 13:53
Re: Width and height of plt
Thanks for the quick reply.
do you know if AbsHeight and AbsWidth will return millimeters when i set before the millimeters property (CADImage) to true? (sample code below)
CADImage cadImage = CADImage.CreateImageByExtension(path);
cadImage.Millimeters = true;
double width = cadImage.AbsWidth;
double height = cadImage.AbsHeight;
What will be stored in width and height vars?
Thanks in advance
do you know if AbsHeight and AbsWidth will return millimeters when i set before the millimeters property (CADImage) to true? (sample code below)
CADImage cadImage = CADImage.CreateImageByExtension(path);
cadImage.Millimeters = true;
double width = cadImage.AbsWidth;
double height = cadImage.AbsHeight;
What will be stored in width and height vars?
Thanks in advance
Re: Width and height of plt
I am interested in this thread as well. I am trying to figure out how to calculate my PLT dimensions in inches.
Re: Width and height of plt
This property is obsolete. Line:
gives nothing.
Sergey.
Code: Select all
cadImage.Millimeters = true;
Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 4
- Joined: 21 Oct 2008, 13:53
Re: Width and height of plt
So, what's the way to get the real measurements in millimeters, centimeters... of the CAD file?
Re: Width and height of plt
Can you please describe in detail what do you mean under "real measurements"? CAD file contains the whole data as CAD units, they are neither millimeters nor inches. cadImage.Millimeters defines whether CAD units to be interpreted as millimeters or inches.
Sergey.
Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
-
- Posts: 4
- Joined: 21 Oct 2008, 13:53
Re: Width and height of plt
First of all, Is there a correspondence between CAD units and inches or millimeters?
If that correspondence is not generic, I suppose that a particular CAD file should include the information of the picture real dimensions. I mean, a correspondence between cad units and real units (millimeters or inches). Does your library provide this information?
Suppose that you import a CAD file with information from a floor of a building, I must know the real dimensions of that building in 2D (length and width in millimeters or inches)
If that correspondence is not generic, I suppose that a particular CAD file should include the information of the picture real dimensions. I mean, a correspondence between cad units and real units (millimeters or inches). Does your library provide this information?
Suppose that you import a CAD file with information from a floor of a building, I must know the real dimensions of that building in 2D (length and width in millimeters or inches)
Re: Width and height of plt
Dear Javi Gonzalez,
1 inch = 25.4 mm - this is a correspendence beetween these units.
Sergey.
1 inch = 25.4 mm - this is a correspendence beetween these units.
We import data as it is. The question is how to interpret received data. Everything depends on what exactly this file contains.Suppose that you import a CAD file with information from a floor of a building, I must know the real dimensions of that building in 2D (length and width in millimeters or inches)
Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Width and height of plt
Here is an example PLT file.
When I open this PLT in ABViewer and look at the File Info it tells me that Measurements : 1021x737 mm
How do I get this number in CADImport?
Thanks
E.Z.
When I open this PLT in ABViewer and look at the File Info it tells me that Measurements : 1021x737 mm
How do I get this number in CADImport?
Thanks
E.Z.
- Attachments
-
- 08-020-A100 Construction Plan - Basement Floor.zip
- (174.43 KiB) Downloaded 1410 times
Re: Width and height of plt
Currently exact measurements for PLT files are unavailable in CAD Import .NET. We will inform you when the problem is solved.
Sergey.
Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Width and height of plt
Hello!
We recommend to use the following code:
it gives result in millimeters.
Sergey.
We recommend to use the following code:
Code: Select all
double vHeight, vWidth;
int FMMWidth, FMMHeight;
vWidth = this.cadImage.PureExtents.right - this.cadImage.PureExtents.left;
vHeight = this.cadImage.PureExtents.top - this.cadImage.PureExtents.bottom;
FMMWidth = (int)(vWidth / 40);
FMMHeight = (int)(vHeight / 40);
Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support