Hello Tony,
I am trying to use this commandline type you wrote.
I downloaded the file and added it to solution.
But I don't know how to call it.
I don't understand the meanind of follwoing lines you wrote.
You can pass ObjectIds directly to the Command()
method when AutoCAD expects an object to be selected:
ObjectId myBlockRefId = ....
CommandLine.Command( "_.EATTEDIT", myBlockRefId )
Can you help me here please.
Tony , This is my Code.
Sub neweditattribute() Dim Entry As Autodesk.AutoCAD.Interop.Common.AcadEntity Do While ThisDrawing.SelectionSets.Count <> 0 ThisDrawing.SelectionSets.Item(0).Delete() Loop SelectionSet = "" sset = ThisDrawing.SelectionSets.Add("SS1") sset.SelectOnScreen() For Each Entry In sset aa = Entry.ObjectName If Entry.ObjectName = "AcDbBlockReference" Then TempT = Entry.ObjectID CommandLine.Command("_.EATTEDIT", TempT) End If Next End Sub
Thanks Again.
Just one other minutely related thought.
ATTREQ = 1 system variable that makes AutoCAD automatically prompt the user when a block that has attributes is inserted. I've run across many users looking for that feature when it magically got turned off.
jvj