Insert multiple DWG file using Entity Clone
Jayanta
1/20/2024 8:02 PM
|
---|
We are facing issue issue to place the multiple DWG file using Entity.Clone. Output DWG file not placinging or inserting the DWG into correct position not & opening in AutoCAD.
|
Wout
1/20/2024 11:01 PM
|
---|
Please format your C# code in the forum post properly next time.
There are 3 problems in your code that I can spot from looking at it for 5 seconds:
|
Jayanta
1/27/2024 2:43 PM
|
---|
Thanks!
|
Jayanta
1/27/2024 3:11 PM
|
---|
Thanks!
|
Wout
1/27/2024 6:58 PM
|
---|
Can you please write a proper problem statement or question? I'm not even going to look at this, it's completely incomprehensible.
- Wout
|
Jayanta
1/27/2024 8:22 PM
|
---|
Trying to find out the Absolute position of the element from the DWG file.
DWG file is containing the similar type of object with different Blocks(B1,B2, B3 etc) each Block is containing the LINE with the Layer Input & Output.
Bounds is returning the relative position with respect to Specific block (B1 or B2 or B3 ) Not with respect to the entire DWG file means absolute position.
Pls ref the attched file.
BoundsCalculator boundsCalculator = new BoundsCalculator();
boundsCalculator.GetBounds(modelsource, line,block.BaseTransformation);
Bounds3D boundsInput = boundsCalculator.Bounds;
Point3D C1 = boundsCalculator.Bounds.Max;
Point3D C2 = boundsCalculator.Bounds.Min;
|
Wout
1/29/2024 3:01 PM
|
---|
If you want to take into account the insertion transformation as well you will have to use:
C# Code: insert. |
Jayanta
1/31/2024 1:22 AM
|
---|
Can you please share any example it would be very helpful to me.
|
Wout
2/1/2024 10:54 AM
|
---|
What do you mean? I just wrote the code for you how to apply the insert transformation.
I can't guess what you're trying to do from the limited information you posted. If you post code, please post a complete Console application that compiles, plus input data, as the written instructions in the forum. If you just provide partial information, I can't really help you.
- Wout
|