Importing CADInsert
Moderators: SDS, support, admin
Importing CADInsert
HI,
How to import a specific insert from a CADImage.
I tried using selectedCadInsert.Converter.Iterate, but it is iterating through all the entities in the cadimage not just entities in the insert.
Thanks
Ravi
How to import a specific insert from a CADImage.
I tried using selectedCadInsert.Converter.Iterate, but it is iterating through all the entities in the cadimage not just entities in the insert.
Thanks
Ravi
Re: Importing CADInsert
Hello Ravi,
CADInsert.Converter.Iterate method iterates through all the entities in the drawing, because CADInsert.Converter actually refers to the current CADImage.Converter. You can use foreach loop to iterate through the entities in a corresponding block. For example:
Mikhail
CADInsert.Converter.Iterate method iterates through all the entities in the drawing, because CADInsert.Converter actually refers to the current CADImage.Converter. You can use foreach loop to iterate through the entities in a corresponding block. For example:
Code: Select all
using CADImport
...
CADEntityCollection entities = new CADEntityCollection();
foreach (CADEntity ent in selectedCadInsert.Block.Entities)
{
entities.Add(ent);
}
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Importing CADInsert
so I need to manually do the rotation, scaling and offset to get exact location of each entity in the block and it gets little more complicated in case of multilevel inserts.
-Ravi
-Ravi