Visual Basic Customization

Visual Basic Customization

Reply
Contributor
14 Posts
0 Kudos
Registered: ‎03-07-2012
Post 1 of 5
Accepted Solution

Issue with thawing layers using VB.net

139 Views, 4 Replies
03-08-2012 03:24 PM

Hey guys,
 
Currently having an issue with thawing a layer I have frozen via VB.net.
 
I have been using the layer manager to view if my changes have been picked up by autocad by seeing if the icon changes in the freeze column.
 
I am currently using :  'layerused.isfrozen = false '   to thaw it. When I set it to true, it freezes fine and the layer becomes hidden and the icon on the layer manager changes to the snowflake/ice icon.

When I change it to true, the icon changes back to the sun, but the layer stays invisible rather than reappearing.
 
Why does this happen?
 
After this whilst the layer is invisible but is thawed ... I click freeze (and the layer stays invisible, as it should if it is frozen) , then click thaw (and the layer appears as it should and the icon goes back to the sun icon).
 
Any info would be greatly appreciated.
 
Cheers

Hi,

 

tried REGEN then?

 

- alfred -

Try adding this.

 

tr.TransactionManager.QueueForGraphicsFlush()
doc.TransactionManager.FlushGraphics()
ed.UpdateScreen()
 

Mentor
173 Posts
13 Kudos
Registered: ‎02-13-2011
Post 2 of 5

Re: Issue with thawing layers using VB.net

03-08-2012 11:05 PM in reply to: hakand

Can you post your code?

 

The property that you mentioned must work fine.

It may be another thing to cause this problem from your code or trancastion.

Without your code our suggestion can not be usefull, only guesses...

 

Saygılarla...

*Expert Elite*
9,793 Posts
1,210 Kudos
Registered: ‎06-29-2007
Post 3 of 5

Re: Issue with thawing layers using VB.net

03-08-2012 11:34 PM in reply to: hakand

Hi,

 

tried REGEN then?

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
*Expert Elite*
1,286 Posts
37 Kudos
Registered: ‎06-21-2004
Post 4 of 5

Re: Issue with thawing layers using VB.net

03-09-2012 10:57 AM in reply to: Alfred.NESWADBA

Try adding this.

 

tr.TransactionManager.QueueForGraphicsFlush()
doc.TransactionManager.FlushGraphics()
ed.UpdateScreen()
 

---------------------------



(defun botsbuildbots() (botsbuildbots))
Contributor
14 Posts
0 Kudos
Registered: ‎03-07-2012
Post 5 of 5

Re: Issue with thawing layers using VB.net

03-12-2012 11:02 PM in reply to: arcticad

thanks guys!

 

Both your replies did the trick.

 

I used REGEN and that worked so I had to change ed.UpdateScreen() to ed.Regen()

 

Many thanks again

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post