How can I do this using FME Desktop?
How can I do this using FME Desktop?
Most easy is just entering coordinates.
More control would be entering it functionaly.
Textbox can be approximateed using bounding box. Some correction will be need depending on font.
Leading line can be created with vertexcreator, one in Replace mode and other in Add mode.
You can move to location and rotate arrowhead (ussing 2Daffiners and or rotator). Scaler could also be used to control its size and shape (wich also can be done with affiner) Affiner requires some basic map (or just look for transformmatrices on ie. wikimath...)
I assume u need fme automation, else you could just create them in ACAD itself.
Essentially, I am already creating the leader line, mtext block, etc. BUT - I really would like to make a leader "object" that has it all tied together. It is much cleaner for the people on the reciving end to then markup as required.
From what I can tell, the functionality to create leaders was added to 2014, but I have yet to find any documentation or examples on how to actually make use of it.
Bryan
Updated format readers/writers
Autodesk AutoCAD DWG/DXF and RealDWG reader/writers
-> Added leader entity writing support.
How? I can't find anything discussing how that works.
I'll write up a HOW-TO with examples if someone will clue me into how to use that newish feature.
Look at them in the dwg writer and expose them, you can set their values (by creating attributes with the same names) and write it to your dwg.
If you open a drawing with arrowheads and leaders in datainspector, you can study these attributes in the navigator panel. I think you may want to create a block "arrowhead" beforehand(?)
Also very usefull is the fme readers and writers in the documentation section (menu item next to änswers") section on autocad:
http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Desktop_Help.htm#../Subsystems/FME_Readers_Writers/Content/Welcome/Welcome2.htm
Thanks for that - I have revese engineered almost all of it, but am stuck on the mtext box. I can't seem to find the keyword to create that.
I created a simple example showing this. I probably am using more autocad_* keywords than necessary, but as it is it works except for the box. And that - even if I just created one to go around the text - is very hard to do, especially if it is to be set to the maximum text width / height plus a buffer due to variable width font.
Example: https://drive.google.com/file/d/0B6mIbz4pHMpjaHlscGl1R1dzaWc/view?usp=sharing
Bryan