@kiahwarren
Did you try the tutorials on this page?
DWGStyler
happy fme-ing :-)
srg
@kiahwarren
Did you try the tutorials on this page?
DWGStyler
happy fme-ing :-)
srg
Thanks for your reply @srg, yes I did try the DWGStyler but it does not seem to work for this situation. I am guessing it is because of the template file, but cannot be sure because I have yet to find documentation on how fme interacts with text styles in DWT template files.
Thanks for your reply @srg, yes I did try the DWGStyler but it does not seem to work for this situation. I am guessing it is because of the template file, but cannot be sure because I have yet to find documentation on how fme interacts with text styles in DWT template files.
@kiahwarren
May be the AutoCAD RW documentation
AutoCAD DWG/DXF Reader Writer Documentation
Even better would be the Text Entities in AutoCAD
hope that helps
happy fme-ing :-)
srg
@kiahwarren
May be the AutoCAD RW documentation
AutoCAD DWG/DXF Reader Writer Documentation
Even better would be the Text Entities in AutoCAD
hope that helps
happy fme-ing :-)
srg
Hi @srg, thanks for your ideas. I have already checked out the documentation on the DWG writer, as well as the specific documentation on text entities and multi text entities. As well, I have also read through the article "Reading and Writing AutoCAD Text & MText Features". Unfortunately, none of the documentation mentions anything about text styles in template files, or the annotative property for multi text.
Hi @zubairsm, thanks for the idea. I already tried setting the autocad_anno_force_visible attribute but it doesn't have any effect.
Hi @kiahwarren,
It looks there might be a workaround using a combination of the provided answers.
Using a DWGStyler, specify the DWG Template File and select the Text option. Next, in the Text section, specify the Text Entity Type as Text and chose the Text Shape Name (the list of shape names is pulled from the template file). This will create the text feature and ensure the correct style is used - you can also specify your Text Justification here if you want. Next, define your annotation scale - from what I understand this has to be any scale other than 1:1 unless you have more than 1 scale set.
Next, add an AttributeManager and add the following AutoCAD DWG Format Attributes and Attribute Values to convert the feature to multiline text and set the Defined Width:
Output AttributeAttribute Valueautocad_entity
autocad_multi_text
autocad_mtext_ref_rect_width
<set your desired Defined Width)
Lastly, in the DWG writer parameters set the template file to the same template that you specified in the DWGStyler to ensure the style is set correctly. That should make the output look like this:
I hope this information helps clarify some things - some good tips and explanations about working with templates/text are given in the AutoCAD Transformation tutorials.
Hi @kiahwarren,
It looks there might be a workaround using a combination of the provided answers.
Using a DWGStyler, specify the DWG Template File and select the Text option. Next, in the Text section, specify the Text Entity Type as Text and chose the Text Shape Name (the list of shape names is pulled from the template file). This will create the text feature and ensure the correct style is used - you can also specify your Text Justification here if you want. Next, define your annotation scale - from what I understand this has to be any scale other than 1:1 unless you have more than 1 scale set.
Next, add an AttributeManager and add the following AutoCAD DWG Format Attributes and Attribute Values to convert the feature to multiline text and set the Defined Width:
Output AttributeAttribute Valueautocad_entity
autocad_multi_text
autocad_mtext_ref_rect_width
<set your desired Defined Width)
Lastly, in the DWG writer parameters set the template file to the same template that you specified in the DWGStyler to ensure the style is set correctly. That should make the output look like this:
I hope this information helps clarify some things - some good tips and explanations about working with templates/text are given in the AutoCAD Transformation tutorials.
Thank you @ChrisAtSafe that did the trick!
I know this question is four-years old now, but I was struggling with exactly this issue today - so it's obviously still a problem. And since I hated all of the answers here I thought I would post what worked for me.
In the DWGStyler where you define the annotation scale, if you only define a single scale for your text then despite the text style chosen, Autocad thinks they shouldn't be actually be annotative and sets Annotative = NO, as shown in the opening post above. But if you define more than one annotation scale then Autocad knows that you really mean it and will set Annotative = YES.