.NET

.NET

Reply
Valued Mentor
fieldguy
Posts: 382
Registered: ‎03-31-2005
Message 1 of 2 (274 Views)
Accepted Solution

Raster Plot draworder problem - PNG

274 Views, 1 Replies
11-30-2012 10:31 AM

I have a program that plots all blocks to png - open a dwg, get a list of all blocks, insert each into an empty dwg, zoom extents, and plot using the OOTB PublishToWeb PNG.pc3.  In the attachments is an example of the problem.  When I do this manually from a layout, I get the correct image.  When I plot from code using the same PC3 file, draworder is being ignored.  

 

It works if I apply transparency to the block and use ps.PlotTransparency = True, but I would prefer not to have to tell the user to change the block definitions.  Is there a plotsettings property I am missing?

 

 

Hi,

 

I searched our database to see any such reported behavior, but could not find any.

I guess the block’s draw order table isn’t refreshed for some reason when you create the drawing while it gets refreshed when you plot it manually.

 

You may try these to see if it resolves :

 

1)      Open the DrawOrderTable of the block (block.DrawOrderTableId) for write in a transaction and then commit the transaction.  This can cause the draw order table to refresh and possibly set the right draw order.

 

2)      Verify if the block in the new drawing has the right relative draw order of its entities using “DrawOrderTable. GetRelativeDrawOrder”

 

If this does not help, can you please provide a small reproducible sample project and a drawing for me to try?

ADN Support Specialist
Balaji_Ram
Posts: 749
Registered: ‎03-21-2011
Message 2 of 2 (234 Views)

Re: Raster Plot draworder problem - PNG

12-06-2012 08:33 AM in reply to: fieldguy

Hi,

 

I searched our database to see any such reported behavior, but could not find any.

I guess the block’s draw order table isn’t refreshed for some reason when you create the drawing while it gets refreshed when you plot it manually.

 

You may try these to see if it resolves :

 

1)      Open the DrawOrderTable of the block (block.DrawOrderTableId) for write in a transaction and then commit the transaction.  This can cause the draw order table to refresh and possibly set the right draw order.

 

2)      Verify if the block in the new drawing has the right relative draw order of its entities using “DrawOrderTable. GetRelativeDrawOrder”

 

If this does not help, can you please provide a small reproducible sample project and a drawing for me to try?



Balaji
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.