高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】exported ole object misplace
exported ole object misplace
exported ole object misplace
hi,
when i export an ole object to dwg/dxf, and find the ole object misplace.
i use pole2frame->setposition(rect3d) to set the ole object place, but open the exported file in autocad and find the ole object misplace, but i open the file with odamfcapp.exe and see the place(point value: (9,-45,0),(232,13,0)) is correct, why?
i add the exported file as an attachment. could you please have a look. thanks
(my enviroment is vs2005, dwgdirect library is 2.04)
the ole object is not in model space but is inside *d4 block.
and the block is inserted into model space at (120.5, -16.0, 0) position. so you see it displaced on the screen by that value.
btw, odamfcapp and autocad renders the drawing exactly the same..
sergey slezkin
quote:
originally posted by sergey slezkin
the ole object is not in model space but is inside *d4 block.
and the block is inserted into model space at (120.5, -16.0, 0) position. so you see it displaced on the screen by that value.
btw, odamfcapp and autocad renders the drawing exactly the same..
thank you, slezkin.
in addition, open the exported file in autocad, i find it draw ole object frame line(or border line), but i want not to draw the frame line, would you like to tell me how to handle this case?
last edited by panda; 12th september 2007 at 07:21 pmfff">.
oleframe variable is responsible for displaying and printing ole object border.
it's value is stored in drawing as acdbdictionaryvar object. (oleframe entry in acdbvariabledictionary)
sergey slezkin
quote:
originally posted by sergey slezkin
oleframe variable is responsible for displaying and printing ole object border.
it's value is stored in drawing as acdbdictionaryvar object. (oleframe entry in acdbvariabledictionary)
thanks.
but i can't find the oleframe vaialbe. could you please tell me how to get the variable and set what value to control the border not to display.
this variable is stored in drawing as acdbdictionaryvar object.
main drawing's dictionary (named objects dictionary) has entry "acdbvariabledictionary" - a dictionary storing acdbdictionaryvar objects.
this dictionary has entry "oleframe" - acdbdictionaryvar object storing the value.
see screenshot attached.
attached images (107.6 kb, 6 views)
sergey slezkin
quote:
originally posted by sergey slezkin
this variable is stored in drawing as acdbdictionaryvar object.
main drawing's dictionary (named objects dictionary) has entry "acdbvariabledictionary" - a dictionary storing acdbdictionaryvar objects.
this dictionary has entry "oleframe" - acdbdictionaryvar object storing the value.
see screenshot attached.
thank you, slezkin.
|