Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone
May i know is there any way to instruct AutoCAD to drawing the revision cloud??
Solved! Go to Solution.
Hello everyone
May i know is there any way to instruct AutoCAD to drawing the revision cloud??
Solved! Go to Solution.
Describe what you are looking for that the REVCLOUD command doesn't do.
-----
If, in Message 1, you want to use this to "instruct AutoCAD" to draw such a thing, I assume you must be wanting to do so in AutoCAD, so is there some reason to not just use AutoCAD's built-in command? [Not that I could help with it -- I don't know that code language.]
Ignoring python for the moment if you use lisp (nentsel "\nPick attribute") you can using the function textbox to get a box the size of text. Then use insertion point of attribute.
(setq ent (car (nentsel "\nPick an attribute ")))
(setq txt (cdr (assoc 1 (entget ent))))
(textbox (cons 1 txt))
((0.0 0.0 0.0) (22.9270833333333 2.5 0.0))
There isn’t a revcloud entity, you have to use the help of send command
Here’s a sample using my python wrappers, it's ActiveX, so you should be able port it to pyautocad
import traceback
from pyrx_imp import Rx
from pyrx_imp import Ge
from pyrx_imp import Gi
from pyrx_imp import Db
from pyrx_imp import Ap
from pyrx_imp import Ed
import AxApp24 as Ax
def PyRxCmd_doit() -> None:
try:
# get the app, doc and model space
axApp = Ax.getApp()
doc = axApp.ActiveDocument
ms = doc.ModelSpace
# coords for the cloud and create a polyline
coords = [0, 0, 0, 0, 1000, 0, 1000, 1000, 0, 1000, 0, 0, 0, 0, 0]
pl = ms.AddPolyline(coords)
#use send command to create the revcloud
handle = '(handent "{}")'.format(pl.Handle)
doc.SendCommand("revcloud A {} Object {} Y ".format(200, handle))
except Exception as err:
traceback.print_exception(err)
It seem i found out my own solution on how to draw the cloud on specific attribute.
I know that isn't a good command or just sending the required information to autocad, but that fulfil my needs.
code are as below: