Spline with dwg files and from blocks

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
shivajitheboss
Posts: 32
Joined: 20 Jun 2019, 16:40

Spline with dwg files and from blocks

Post by shivajitheboss » 19 Jul 2019, 14:06

Hi,

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

Regards,
Shiv

support
Posts: 3271
Joined: 30 Mar 2005, 11:36
Contact:

Re: Spline with dwg files and from blocks

Post by support » 26 Jul 2019, 20:38

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply