.NET

Reply
Member
mariominati
Posts: 4
Registered: ‎01-23-2006
Message 1 of 3 (225 Views)
Accepted Solution

some new created entities are not shown

225 Views, 2 Replies
03-02-2013 02:20 PM

Hello,

 

within a while loop we are letting the user pick elements and select points to copy and create entities.

 

My problem is that some of the newly created entites are shown at once (a leader entity) and some are not shown until the command has ended (a polyline and a mtext entity).

 

The code to insert and add the entites to the drawing are identically, we cannot see any obvious reason why some of the objects are not shown.

 

The leader is created as last object in every while loop, but that should make a difference.

 

The transaction is commited before each loop ends, in fact just after the last entity has been added in each loop.

 

Is there any command we can call after each loop to enforce updating the screen?

 

Best greets,

 

Mario

Hello,

 

the solution was so simple - if you know it :-)

 

We had to start a seperate transaction in the loop. On committing all the objects are shown properly.

 

I had nothing to do with transient graphics.

 

 

Best greets,

 

Mario

Member
mariominati
Posts: 4
Registered: ‎01-23-2006
Message 2 of 3 (206 Views)

Re: some new created entities are not shown

03-02-2013 04:53 PM in reply to: mariominati

Hello,

 

I just realized that this problem is due to the transient graphics we are useing for selection of entities. The two missing entities (mtext and polyline) are displayed next to cursor, and through the update method I assume the real object gets temporarily cleaned from the display.

 

Did anyone have experience in this kind of problem and can help?

 

 

Best greets,

 

Mario

Member
mariominati
Posts: 4
Registered: ‎01-23-2006
Message 3 of 3 (169 Views)

Re: some new created entities are not shown

03-05-2013 03:13 PM in reply to: mariominati

Hello,

 

the solution was so simple - if you know it :-)

 

We had to start a seperate transaction in the loop. On committing all the objects are shown properly.

 

I had nothing to do with transient graphics.

 

 

Best greets,

 

Mario

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.