- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have tried to remove multiple Fabrication CADmep text by using 'REMOVETEXT' command.
However, there was not any option by default in Fabrication CADmep. Now I am trying to create a tool to achieve this and unable to. Here is my code, please help if anyone familiar with Fabrication CADmep tool development using .Net C#
using (transaction)
{
ObjectId[] validblkID = new ObjectId[objectIds.Count];
objectIds.CopyTo(validblkID, 0);
editor.SetImpliedSelection(validblkID);
transaction.Commit();
}
Application.DocumentManager.MdiActiveDocument.SendStringToExecute("EXPLODETEXT \n", true, false, false); Please, suggest how to remove multiple Fabrication CADmep text by single action.
Optionally, suggest on the code or Autolisp to get this feature.
Thanks in advance![]()
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am sure it is possible with the API but a script is easier and just as effective.
Don't forget to "Accept As Solution" and "Give Kudos" when an acceptable solution has been given.
|| LinkedIn || LinkedIn Fabrication Group ||
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Can you please, share some clue?Autolisp?Fabrication API?...how we can do that ?
Any suggestion will helps a lot...
Thanks and regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I cover it in this webinar https://www.youtube.com/watch?v=Yohaq5I-b0Q
Don't forget to "Accept As Solution" and "Give Kudos" when an acceptable solution has been given.
|| LinkedIn || LinkedIn Fabrication Group ||
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm sorry, but that was an annoying answer.
From your video (and fixed to allow you to run it and THEN select objects) without wasting someone's time scrubbing for a simple answer:
;RemoveMapText
(defun c:RMT (/ ss)
(setq ss (ssget))
(RemoveMapText ss 127)
)
Change the 127 variable to whatever combination of object text you want to remove. The values to sum can be found in the Fabrication help file here: https://help.autodesk.com/view/FABRICATION/ENU/?guid=GUID-2E0B4DC9-66FD-42B6-8301-B1DF416619E7
or:
Flag is a bitwise number that indicates the text to work on; for example:
1 = Item Number
2 = Size
4 = Elevation Text
8 = Alias Text
16 = Set Information
32 = Length Dimension
64 = Custom Report Text
It works the same as OSMODE, so if you only want to remove item number and size, you would set the variable to 3. 127 is the sum of all and removes all map text.