RealDWG API - viewportDraw functions and worldDraw functions

RealDWG API - viewportDraw functions and worldDraw functions

Anonymous
Not applicable
1,567 Views
10 Replies
Message 1 of 11

RealDWG API - viewportDraw functions and worldDraw functions

Anonymous
Not applicable

1. Surface.dwg - When we try to view the drawing using the Simplify program it crashes the program when it encounters a particular Surface Object (Handle: 4B94).Note: When working on problem 2 above Autodesk sent us a modified version of the dumpdwg program that was provided with RealDWG 2015 that would call viewportDraw functions in addition to worldDraw functions.  If we use the dumpdwg program to read the Surface drawing it encounters the same problem as the Simplify program so we know the problem is not related to our code. 

 

2. We have a drawing containing a series of 3D Solid objects (3D Solids.dwg).  When we attempt to display the objects in Plant Vision some of the 3D objects appear to be very much larger than the rest of the objects even though they all should be roughly the same size.  We found that AutoCAD 2015 displayed the drawing the same way on my PC; however, once I install Service Pack 2 for AutoCAD 2015 the problem went away when it was displayed in AutoCAD.

Is there any upgraded version of RealDWG 2015 library files since its initial release and if so could we get a copy of the updated files?

Your help is grealty appriciated.

 

Thank you

Jignesh Rajput

0 Likes
1,568 Views
10 Replies
Replies (10)
Message 2 of 11

dmfrazier
Advisor
Advisor

If you are unable to get help here:

 

http://usa.autodesk.com/adsk/servlet/item?siteID=1​23112&id=19350673

 

you could try posting your questions on one of the sub-topics here:

 

http://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1

 

0 Likes
Message 3 of 11

Balaji_Ram
Alumni
Alumni

Hi Jignesh,

 

I do not reproduce the crash using the sample project that i earlier shared with you.

Here is a recording of the output with Surface.dwg :

http://autode.sk/1MvbMLe

 

About the other issue - There were no service packs for RealDWG 2015 released.

I did notice difference in the WorldGeometry and ViewportGeometry calls in RealDWG 2015 as compared to 2014 and 2016 releases.

The results of the geometry calls in RealDWG 2014 and RealDWG 2016 were similar, while RealDWG 2015 values were quite different.

 

I have enquired with our engineering team to find out about this. I will keep you updated.

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 4 of 11

Anonymous
Not applicable

Hi Balaji,
The Autodesk sample program we have causes crash. Can you please send me the sample program again? Can you please also spot out the differences in call for RealDwg 2015 which you are able to notice?

Thank you.

0 Likes
Message 5 of 11

Anonymous
Not applicable

Hi Balaji,

Here is the dumpDwg program output and it crasehs while trying to draw AcDbSurface - 4B94 (please see the attached output file).

 

Thanks

Jignesh.

 

0 Likes
Message 6 of 11

Balaji_Ram
Alumni
Alumni

Hi Jignesh,

 

For the first issue - I still cannot reproduce the crash. I do not know what could be causing it to crash at your end. You may need to try it on any other system or try reinstalling RealDWG 2015 to see if that fixes the problem. In the attached output from DumpDwg, the entity with handle 4B94 is also listed.

 

For the second issue about large display - I had contacted our engineering team. From what i heard from them, they will need more information on the behavior. 

- Does this happen only on this drawing or do you have any other drawings that have this problem.

- In the drawing that you shared (3D Solids.dwg), is there a specific entity that appears large or all the entities show up the same way.

 

Also, i was provided this modified version of the same drawing from our engineering team. Can you try with this and see if this displays ok ?

 

Can you try with RealDWG 2016 and see if the problem exists ? As there are no service packs for RealDWG 2015, I would assume any fix that went into service packs in AutoCAD 2015 should get bundled with RealDWG 2016.

 

Regards,

Balaji

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 7 of 11

Anonymous
Not applicable

Hi Balaji,

For the first issue, the crash occurs on other developer's PC. For the second issue (specify entity display large), the modified drawing (3D Solids_fixed_transform.dwg) appears correctly using RealDWG 2015 libraries.

Can you send me the RealDWG 2016 so I can test the first issue? Also please send me the latest DwgView sample project (which you cannot reproduce crash).

 

Thank you.

Jignesh.

0 Likes
Message 8 of 11

Anonymous
Not applicable

Also, would you please let us know what type of changes have been made to the drawing so that it appears correctly on my PC now?

Thank you.

0 Likes
Message 9 of 11

Balaji_Ram
Alumni
Alumni

Hi Jignesh,

 

RealDWG 2016 is a licensed product, so you may need to get access to it just as you did for RealDWG 2015.

 

The modified drawing that was shared by our engineering team only has all the entities moved a bit. You can also try WBLOCK the whole drawing to a new one. As i mentioned earlier, this seems to be a behavior that was addressed but unfortunately we do not have a service pack released for it in RealDWG 2015.

 

I would suggest the following :

 

1. Try WBLOCK of the whole drawing that you earlier had problem with.

 

2, Try your application with RealDWG 2016

 

About the sample project that you requested, I have already shared it with you and haven't made any more changes to it.

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 10 of 11

Anonymous
Not applicable

You did not send me the sample project. Would you please share it again ASAP?

Thanks.

0 Likes
Message 11 of 11

Balaji_Ram
Alumni
Alumni

There was another RealDWG case that i recently replied and it was also from B & V  

 

So, i assumed that you were part of the same group.

 

Anyway, here is the sample that had worked ok.

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

0 Likes