几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】question about brackets [ ] in text and mtext entity (http://www.dimcax.com/hust/showthread.php?t=18283)

yang686526 2009-05-07 12:08 PM

【转帖】question about brackets [ ] in text and mtext entity
 
question about brackets "{ }" in text and mtext entity
question about brackets "{ }" in text and mtext entity
hello
can somebody explan to me detailed preparing text for correct storing in dxf, text like:
\abc {def} - this text is possible to store into dxf file, but when i was reading this text from dxf file, dwgdirect ignore brackets
another example text like {}. i prepare this text as \{\} and put it into dwg structure and when open this dxf file with autocad, acad render my text as \{\}, not ignored backslashes. is this acad bug or dwgdirect bug ?
how i have to prepare text like \{} for dwgdirect structer that i can have correct values of text in dxf file that i can see correct text in autocad when i load that file !?
i attached text.dxf file which was created with dwgdirect 2.5.1 and when i load this file into autocad, my brackets was not ignored by autocad render !
can somebody explain to me how i have to prepare my text with backslashes and brackets that i can correctly write and read my strings in a same values !
regards
ervin
attached files
i forgot to write, that this behaviour with not ignoring breackets is only in text entity, not in a mtext.
regards
ervin
hello ervin,
brackets "{}" are control simbols for mtext entity. so in case you set mtext content you need to prepare text as "\{\}". brackets "{}" are normal simbols for text enitity. so you needn't to add anything. for example string is "abc \{text\}" for mtext and "abc {text}" for text.
best regards,
sergey z.
ok, it's works
thanks to you a lot !


所有的时间均为北京时间。 现在的时间是 06:04 AM.