This is Abhay Joshi's Typepad Profile.
Join Typepad and start following Abhay Joshi's activity
Abhay Joshi
Recent Activity
Abhay Joshi is now following Balaji
Sep 23, 2016
Hello Balaji,
I am trying to create the associative dimension in paper space same as example. As per your sample code, it works well for top viewport with scale 1:1. But creates issues for dimensions in isometric views with scale other than 1:1. Before creating AcDbDimAssoc object. I override DIMLFAC for dimension by using setDimlfac(). Which include scale (1.22 * 10). It dimension showed correct value after creating it. But after I changed view scale manually, the value is no longer correct.
After checking difference between manual and programmatic dimension in ArxDbg, I found XDATA for ACAD_DIMASSOC_CALC_DIMLFAC, ACAD_DIMASSOC_DIMLFAC and ACAD_DIMASSOC_OVERRIDDEN_DIMLFAC in manual dimensions.
After googling I found link https://forums.autodesk.com/t5/autocad-2000-2000i-2002-archive/paperspace-dimensions-giving-incorrect-values/m-p/141420 for DIMLFAC XDATA. I mentioned to set XDATA for these applications.
In code after creating AcDbDimAssoc I set XDATA to dimension for ACAD_DIMASSOC_OVERRIDDEN_DIMLFAC with lfac*viewscale and ACAD_DIMASSOC_CALC_DIMLFAC with viewscale.
Then dimension worked fine for all manual operations (changing viewscale, modification in line).
Is it safe to set XDATA for DIMLFAC?
Creating associative dimension in paperspace associated to a modelspace entity
By Balaji Ramamoorthy Most of the code in this blog post is from a code snippet that my colleague Philippe Leefsma implemented. While his original code created an aligned dimension in paperspace, i have modified it slightly to create an ordinate dimension to cater to a recent developer request. ...
Hello,
I have reverse situation, I need to draw Filled area in hide mode.
Currently I am using mesh. Can you suggest some way to do that?
Abhay
Text primitives in custom entities not hidden after using HIDE command
By Gopinath Taget Consider this: You have created a Custom Entity and among other primitives in the worldDraw, you draw a text (mode->geometry().text). After placing the custom entity, When you run the HIDE command in 2D wireframe mode, the text in the custom entity is not hidden. Furthermore, w...
Abhay Joshi is now following The Typepad Team
Sep 29, 2015
Subscribe to Abhay Joshi’s Recent Activity