Community
DWF
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DWF coordinates

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
378 Views, 2 Replies

DWF coordinates

It seems to me that DWF in AEV use different coordinates than the original dwg.
Is there any way get them behave alike ?
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

AutoCAD uses a double-precision floating point
coordinate space, and DWF uses an integer coordinate space.  Apples and
oranges.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
It
seems to me that DWF in AEV use different coordinates than the original dwg.

Is there any way get them behave alike ?
Message 3 of 3
Anonymous
in reply to: Anonymous

The coordinates that you use with AEV (such as when
you set a view with the AdView.Viewer.SetView(,,,) ) are in paper coordinates
(either mm or inches depending on your settings).

 

You can use the TransformPoint method to convert a
point from AutoCAD coordinates to DWF paper coordinates or vice-versa.  The
TransformPoint method is available in the latest service pack version of AEV 3.0
SP2.

 

Attached is the API documentation for the AEV 3.0
SP2 release.  In checking our web site I see that it is still showing
the old version of the AEV 3.0 SP0 API documentation.  We'll get that
fixed...  for now just use the attached help file for the API calls. 
Note that the TransformPoint method can't currently be called from a scripting
language since it takes an array as a parameter.  You can call it from C++
or VB, but not VBscript or JavaScript.

 

If you need to use it in a scripting language your
best bet is to use Visual Studio to create a simple ATL COM component that
exposes an API and internally calls the TransformPoint method for
you.



style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
It
seems to me that DWF in AEV use different coordinates than the original dwg.

Is there any way get them behave alike ?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost

 

”Tips

 

”Services