Page 1 of 1

Spline with dwg files and from blocks

Posted: 19 Jul 2019, 14:06
by shivajitheboss
Hi,

I want to know how can I get Spline from blocks or from DWG file?

Regards,
Shiv

Re: Spline with dwg files and from blocks

Posted: 26 Jul 2019, 20:38
by support
Hello Shiv,

To get all entities of the Spline type from a block with a given name, you may use the following code:

Code: Select all

List<CADEntity> splinesInBlock = cadImage.Converter.BlockByName("Block1").Entities.FindAll(ent => ent.EntType == EntityType.Spline);
Mikhail