How do I erase these "attributes"?

How do I erase these "attributes"?

Anonymous
Not applicable
2,534 Views
8 Replies
Message 1 of 9

How do I erase these "attributes"?

Anonymous
Not applicable

Please see the attached drawing; the "attributes" are not behaving like proper attributes, so they don't appear as objects in the block editor.  How can I erase these things?  

 

I have multiple files that can have HUNDREDS of these kinds of blocks in them, so I need something like a LISP routine that will allow me to select any number of these blocks and wipe out these phony "attributes" in one shot.

 

I have also attached an image of the block in the VLISP editor.  The entities in question ARE there...now just how to wipe them all out?

 

These blocks are coming out of an Inventor FDS sync, so no, they cannot be wiped out at the originating source, that is out of the question, this deletion MUST be done in AutoCAD.

 

 

0 Likes
Accepted solutions (2)
2,535 Views
8 Replies
Replies (8)
Message 2 of 9

john.vellek
Alumni
Alumni
Accepted solution

Hi @Anonymous,

 

This is an interesting issue.  I took the geometry and made a new block with it and thus redefined the existing block. Once I did this I was able to successfully BURST the existing block and then remove the attributes. After that I was able to either make a new block from the exploded geometry or simply insert the version of my block.  If something like this works, perhaps you could incorporate it into a macro to simply some of the steps.

 

Capture.PNG

Do you have a lot of these instances/lots of drawings? You mentioned 100's but are these in numerous files?

 

 

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 3 of 9

Anonymous
Not applicable

Yes, unfortunately I do.  EVERY SINGLE TIME I sync an FDS layout from Inventor, I get this nonsense.  The people in charge of FDS apparently didn't have anything better to do with their time, so they MASSIVELY HOSED the 2017 version, resulting in this incredible boondoggle.  Now I have layouts FULL of attributes that can't be edited with the standard attribute editing tools like BATTMAN.  To make matters even worse, my electrical engineers cant access the "attributes" through the standard DXX extract in AutoCAD; so now their work takes days instead of minutes.  

 

***Unfortunately, I just realized that BURST will not work, as I need the block definition to remain intact, there needs to be a way to wipe out the bad attributes without completely destroying the block's name and linework inside.  Thanks for the reply though!***

0 Likes
Message 4 of 9

RobDraw
Mentor
Mentor
Have you tried ATTSYNC on those blocks?


@Anonymous wrote:

EVERY SINGLE TIME I sync an FDS layout from Inventor, I get this nonsense.  The people in charge of FDS apparently didn't have anything better to do with their time, so they MASSIVELY HOSED the 2017 version, 


I bet they did it just to get under your skin, too!

 

Why do people make such outrageous obviously false claims?


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
0 Likes
Message 5 of 9

Anonymous
Not applicable

I make that claim because when I try ATTSYNC, I get the message "this drawing contains no attributed blocks!"

 

Maybe get a little more info next time before YOU make false claims.

0 Likes
Message 6 of 9

cadffm
Consultant
Consultant

NOTE: I dont know about factory features, so I can not help of the question
what you can or should to do in the settings or templates.

I just want to help from standard AutoCAD page with a workaround if needed.

Your example file:
The Attribues use layers "Factory_Properties" and "Factory_Descriptor",
if these Layers only for the attributes of blockreferences and you want
to delete all of them, User Command: LAYDEL

Beware: I dont know where these Layers use in your original drawing (1000 of drawings),
and I know nothing about the factory-Features. Only on DWG-side I can help and explain.
(Standard AutoCAD functions and structure of an DWG or DXF file)

Script or for type-in commandline:



;; start script ======================================
_.-LAYER
_thaw 0
_on 0
_set 0
_new Factory_Properties,Factory_Descriptor
_unlock Factory_Properties,Factory_Descriptor

;; deleter Layers with objects, use LAYDEL ===========
_.-LAYDEL
_name
Factory_Properties
_name
Factory_Descriptor

_yes
;; end of Script ====================================

 

 

 

Or you need a tool what exactly do what you want.

 

(and 99% peaople here are users like you, not "Autodesk"    - Please think of your answers, thank you)

Sebastian

0 Likes
Message 7 of 9

RobDraw
Mentor
Mentor

@Anonymous wrote:

Maybe get a little more info next time before YOU make false claims.


Okay, where did I make any claims? I asked a question. Maybe you should answer it without making assumptions.

 

I don't think I've ever seen a block that obviously has attributes and has values that can be edited but the attributes are not recognized when it comes to editing the block.


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
0 Likes
Message 8 of 9

Ranjit_Singh
Advisor
Advisor
Accepted solution

@Anonymous wrote:

.......

These blocks are coming out of an Inventor FDS sync, so no, they cannot be wiped out at the originating source, that is out of the question, this deletion MUST be done in AutoCAD. 


@john.vellek has already provided a perfect solution. Here is a lisp just in case. The additional data is coming from an extension dictionary that is attached to the object. Luckily this data has its own layer. One can delete those layers and the data is lost then simply erase the extension dictionary for cleaning up the block.
(defun c:somefunc  (/ exdictobj ss1 vlaobj)
 (if (setq ss1 (ssget))
  (progn (if (tblsearch "layer" "Factory_Descriptor")
          (command "._laydel" "_n" "Factory_Descriptor" "" "_y"))
         (if (tblsearch "layer" "Factory_Properties")
          (command "._laydel" "_n" "Factory_Properties" "" "_y"))
         (foreach i  (vl-remove-if 'listp (mapcar 'cadr (ssnamex ss1)))
          (vlax-for i  (setq exdictobj (vla-getextensiondictionary (setq vlaobj (vlax-ename->vla-object i))))
           (vla-delete i))
          (vla-delete exdictobj))))
 (princ))

 delete_extension_dict.gif

Message 9 of 9

joe.shepard
Explorer
Explorer

I see what you're doing now. Never mind my response.

0 Likes