Problem with Handle
Moderators: SDS, support, admin
- Paolo Turrini
- Posts: 4
- Joined: 25 Feb 2011, 12:06
Problem with Handle
I copy an entity with this code:
After this, the original line and the scond line have the same HANDLE and when i try to remove one of this two entities the resul is random.
Can you help me?
Thanks
Code: Select all
CADLine ne = cadImage.SelectedEntities[0];
// I change position of the new line
ne.Point = ne.Point.Offest(new DPoint(10,10,0),true);
ne.Point1 = ne.Point1.Offest(new DPoint(10,10,0),true);
this.cadImage.UseDoubleBuffering = false;
this.cadImage.Converter.GetSection(ConvSection.Entities).AddEntity(ne);
this.cadImage.Converter.OnCreate(ne);
this.cadImage.Converter.Loads(ne);
Can you help me?
Thanks
Paolo Turrini
Consulenze Informatiche
Via Pavone 71
44121 Ferrara - Italy
Tel. +39 051 051 64 90
Fax. +39 0532 19 11 789
Cel.+39 339 8715400
E-mail: info@informaticaturrini.com
Sito: http://www.informaticaturrini.com
Consulenze Informatiche
Via Pavone 71
44121 Ferrara - Italy
Tel. +39 051 051 64 90
Fax. +39 0532 19 11 789
Cel.+39 339 8715400
E-mail: info@informaticaturrini.com
Sito: http://www.informaticaturrini.com
Re: Problem with Handle
Hello.
You have copied CADLine object with all its properties include Handle. Adding such object to Converter is incorrect. Please use AssignEntity method to perform copy operation.
Alexander.
You have copied CADLine object with all its properties include Handle. Adding such object to Converter is incorrect. Please use AssignEntity method to perform copy operation.
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
- Paolo Turrini
- Posts: 4
- Joined: 25 Feb 2011, 12:06
Re: Problem with Handle
Thanks. Now it works perfectly
Bye
Bye
Paolo Turrini
Consulenze Informatiche
Via Pavone 71
44121 Ferrara - Italy
Tel. +39 051 051 64 90
Fax. +39 0532 19 11 789
Cel.+39 339 8715400
E-mail: info@informaticaturrini.com
Sito: http://www.informaticaturrini.com
Consulenze Informatiche
Via Pavone 71
44121 Ferrara - Italy
Tel. +39 051 051 64 90
Fax. +39 0532 19 11 789
Cel.+39 339 8715400
E-mail: info@informaticaturrini.com
Sito: http://www.informaticaturrini.com