We collect field survey data using a Trimble handheld GPS datalogger. We export DXF files from Trimble Pathfinder Office (PFO). The logged points are exported as DWG blocks. The blocks appear in the DWG that we create from the exported DXF as points with attributes. We update the appearance using a block of the same name from our library.
Everything looks good, but we can't get rid of the attributes. (We need some of those attributes but eventually need the drawing to be cleared of them.) These attributes appear when we double-click a block, but not when we edit the block, so we can't simply delete the attributes from the block.
We've tried wblock, writing out all instances of the offending block to a new DWG. The blocks in that new, daughter DWG (all of them are the same) retain their attributes as in the parent drawing. Unfortunately, they lose the annotative characteristic, but that's a manageable problem.
We then delete all instances of that block from the parent drawing, purge, audit, and insert the daughter DWG into the parent. The result is that all instances of the block now appear as a point, not annotative, and still with the nonsense attributes.
It seems that the block that is exported from PFO to DXF has some inherent properties that we cannot modify. A work-around, which is getting tedious, is to use the PFO DWG as an xref to the parent, and insert the desired block into the parent at the coordinates of each instance of the offending block.
Anyone have any ideas?
Solved! Go to Solution.
Solved by Ranjit_Singh2. Go to Solution.
Hi @mkrones,
Perhaps I am misunderstanding but...
Can you use BATTMAN to edit the block and remove any attributes that you do not want to rain and then use Sync? You are welcome to attach a sample drawing file and tell me which attributes you don't want. I am happy to explore some options for you.
If I missed the intent of your question perhaps you can phrase it differently.
Please select the Accept as Solution button if my post solves your issue or answers your question.
Hi Michael,
I don't see an attachment. Make sure to add it through a web browser and not through email.
Sebastian
@mkrones wrote:
Please see the attached DWG.
Michael
Hi Michael, try the below routine. It worls on the attached dwg. See screencast.
(defun c:somefunc (/) (mapcar '(lambda (x) (foreach i (vlax-invoke (vlax-ename->vla-object x) 'getattributes) (vla-delete i))) (vl-remove-if 'listp (mapcar 'cadr (ssnamex (ssget '((0 . "INSERT"))))))) (princ))
Hi Michael,
I exploded one of your blocks. I then used LAYDEL to remove the IR-RCV150 layer and I then purged the file.
Does this work for you?
Please select the Accept as Solution button if my post solves your issue or answers your question.
Michael, follow below steps.
You should be done. Type somefunc at command prompt. See this link and the related topics section in there for more help. Let me know if you run in any issues. Good luck 🙂
Can't find what you're looking for? Ask the community or share your knowledge.