.NET

Reply
Distinguished Contributor
quigs
Posts: 143
Registered: ‎09-30-2008
Message 1 of 12 (324 Views)

Overuled blocks appear darker.

324 Views, 11 Replies
01-11-2013 02:35 AM

Hi there,

In some of our polyline overrules we have blocks, the problem is that those blocks are coming in at a darker colour.  It's as if  they are permanently selected.  Has anyone come across this before?

 

Thank you,

 

Maritn.

My name is Martin.. :smileyvery-happy:
Valued Mentor
DiningPhilosopher
Posts: 370
Registered: ‎05-06-2012
Message 2 of 12 (308 Views)

Re: Overuled blocks appear darker.

01-11-2013 06:39 AM in reply to: quigs

You might want to rephrase your question because it's vague.

 

What are you doing, with blocks and overrules ?  

Distinguished Contributor
quigs
Posts: 143
Registered: ‎09-30-2008
Message 3 of 12 (306 Views)

Re: Overuled blocks appear darker.

01-11-2013 06:53 AM in reply to: DiningPhilosopher

Ok, I will try and be more descreiptive.

 

We have a function that applies an Overrule to 2dPolyLine.  The overrule consists of Blocks in the shape of a triangle that are copied along the polyline at a selected distance.  The colour of the triangles is the issue.  Basically we set the triangle block to colour index 2 (yellow), but it displays at a darker yellow.  And that applies for nay colour.  If you move the polyline the blocks colour appears correct, then when you set it back down it goes back to being dark.

 

Thanks,

 

Martin.

My name is Martin.. :smileyvery-happy:
Distinguished Contributor
quigs
Posts: 143
Registered: ‎09-30-2008
Message 4 of 12 (300 Views)

Re: Overuled blocks appear darker.

01-11-2013 07:49 AM in reply to: quigs

I'm just wondering if this is a bug in the worlddraw?  We can't seem to find a solution apart from darken all the other stuff to match the miss coloured block.  Very frustrating.

My name is Martin.. :smileyvery-happy:
Valued Mentor
DiningPhilosopher
Posts: 370
Registered: ‎05-06-2012
Message 5 of 12 (285 Views)

Re: Overuled blocks appear darker.

01-11-2013 03:38 PM in reply to: quigs

Sorry, still really not enough to diagnose the problem, which is probably in your WorldDraw() implementation. 

Distinguished Contributor
quigs
Posts: 143
Registered: ‎09-30-2008
Message 6 of 12 (247 Views)

Re: Overuled blocks appear darker.

01-15-2013 06:47 AM in reply to: DiningPhilosopher

It is the worlddraw we have overridden, but why would  a block reference in the worlddraw of an overrule be darker?

I have a feeling it's something to do with the fact that it thinks it's being moved even when it's not.

 

Ta,

 

Martin.

My name is Martin.. :smileyvery-happy:
Distinguished Contributor
quigs
Posts: 143
Registered: ‎09-30-2008
Message 7 of 12 (216 Views)

Re: Overuled blocks appear darker.

01-18-2013 04:27 AM in reply to: quigs

We have just ran more tests.  The bug shws up in 2011 & 2012.  BUt the same code ran in 2010 works fine, with no discoloration.  I have attached a sample project.

 

Regards.

 

Maritn.

My name is Martin.. :smileyvery-happy:
Distinguished Contributor
quigs
Posts: 143
Registered: ‎09-30-2008
Message 8 of 12 (213 Views)

Re: Overuled blocks appear darker.

01-18-2013 04:45 AM in reply to: quigs

Oops,

here it is.

PS: Make sure to open the drawing first so the block is loaded into the drawing.

My name is Martin.. :smileyvery-happy:
Distinguished Contributor
quigs
Posts: 143
Registered: ‎09-30-2008
Message 9 of 12 (169 Views)

Re: Overuled blocks appear darker.

01-23-2013 05:29 AM in reply to: quigs

Hi there Balaji,

were you able to re-create the problem were having?

 

Regards,

 

Maritn.

My name is Martin.. :smileyvery-happy:
ADN Support Specialist
Balaji_Ram
Posts: 660
Registered: ‎03-21-2011
Message 10 of 12 (159 Views)

Re: Overuled blocks appear darker.

01-23-2013 09:12 PM in reply to: quigs

Hi Martin,

 

Sorry, your post seemed to indicate that you had resolved it :smileyhappy:

 

If you still have this issue, let me know and I will try it out right away.

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community