importeren van DWG-bestanden, gemaakt of geëxporteerd via Illustrator

Ik heb de vloerindeling van een appartementsgebouw via een DWG-bestand dat eerst gemaakt is in Illustrator.
Gezien Illustrator een grafisch programma is en geen technisch, komt dat nestand met honderden (sic!) blocks.

Heeft hier iemand ervaring mee om dit bestand te manipuleren dat het eenvoudig(er) kan bewerkt worden in BricsCad?

Comments

  • Does "Blockify" help.

  • zoomer
    edited March 17

    In my case (IFC import) Blockify simply did not find redundant Block duplicates. One unique Block definition for each same Sprinkler. I would have had to explode all Block References in the drawing first and then run Blockify. I have no proof if it would have worked that way, as by exploding the file would no more be realistically editable, it was lagging more than enough already. Even running Blockify had needed 2-3 days …..

    In Bricscad there is also no option to select all related Block References and assign another (e.g. the first) Block (to all References)

    So I opened the IFC in Blender's IFC AddOn Bonsai. There I could create my IfcTypes (like Block definitions for instanced copying) and was able to Select all related References (lag free) and apply one of my IfcTypes to each sort. This means purging the former geometry and replace with the Type, which needed a few minutes for a few thousands references.

    In the thread starters case it may be worth to select most or all Block References in Drawing and EXPLODE or XPLODE them (but avoid exploding Hatches and such things).
    I can never remember which one to use. I usually want the ones that keeps (!) children Geometry attributes of by Layer or by Object.

    And then optionally run Blockify - in case there is identical Geometry combinations that is worth or wanted to combine into Blocks, to be able to edit all at a time.

  • Are the blocks with a common name for the same block ? Sprink1 Sprink2, Door1 Door2 and so on.

    Can you post a small test dwg and maybe something can be done. Have an idea start with lisp then maybe convert to .net for speed.

  • zoomer
    edited March 18

    Yes, the Blocks have the same name and the copies a number suffix. As far as I can see they are totally identically.

    The IFC Ex-/Import may have made bad geometry. What might have been Solids (or Meshes ?) came in as a mix of loose 3D Faces, Surfaces and Regions. So an overall crappy source file and unfortunately under NDA.

    I think the Sprinklers werent initially Cells in Microstation, maybe anonymous Cells ?
    At least only Bricscad imported the IFC with these as Blocks. Vectorworks did not create Symbols as well as Bonsai finds no IFC Types, just IFC objects.

    But I nearly forgot, searching for and combining identical Block duplicates went from BLOCKIFY into OVERKILL (duplicate Blocks).
    Seems I have not yet tested that with the original import DWG.

    Hmmh, OVERKILL found a few duplicate Blocks, but only those having only a few (5-30) copies, not my Sprinkler Blocks with thousands.
    Have to look at it again.
    EDIT :
    OK, I see I did try that before. It does not find the Sprinkler Blocks. No matter what large Numbers I try In BLOCKIFY Tolerance Settings.

    Maybe, because OVERKILL has no access to or does not use BLOCKIFY Tolerance Settings ?

  • If you have a block with name "sprinkx" then you can find all of them read their insert pt, rotation and scale. I would then insert "sprink1" at that point with correct insertion point and scale etc on a new layer If happy could as a quality check search for the two sprinks at a single point any singles should be identified. Then erase all "sprinkx's" except the master one.

    Again just "Wblock" out like 6 sprinklers as a sample dwg no need for a complete dwg. That is not breaching copyright etc

    This should get all blocks "sprinks" change name and give it a try. Copy to command Line.

    (princ (sslength (ssget "X" (list (cons 0 "Insert")(cons 2 "sprinks*")(cons 410 (getvar 'ctab))))))

  • zoomer
    edited 12:58PM

    Again just "Wblock" out like 6 sprinklers as a sample dwg no need for a complete dwg. That is not breaching copyright etc

    WBLOCK, aha, ok. Didn't know that. Learned something new.
    I used COPYCLIP and Paste in Place into an empty file.
    (which took around 5 minutes for each step)

    OK, I deleted everything but the Sprinkler Heads - but DWG was still nearly 500 MB 🤣
    (If you look deeper into their geometry, you will understand why)

    So I deleted the large majority of those too and purged. 26 MB DWG File Attached.

    In Blender/Bonsai I could select the Sprinkler "Deflectors" (all tagged as default IfcBuildingProxis) by their Names. Somehow I do not find their names in Properties. Maybe via the new Selection Options, by searching for their "BIM Name" - did not try, but wonder why that does not appear somewhere in Properties "BIM".

  • I am surprised the forum allowed 25Mb dwg, just use Wblock next time. If I can download that is what I am going to do for testing.

  • ALANH
    edited 3:49AM

    just a comment, watch this space slowly working on it.

    Yes was working on it now another problem. The blocks whilst they have a common prefix, the size is always scale 1, but the blocks are not one size. Whilst it has used a core sprinkler it has rescaled the sprinkler then made it a block. So a 1 scale is like a 5 scale in another block but properties returns 1. There may be a way around that by setting the block size and comparing a bounding box of the original block so it is rescaled to match.

    You have something turned on in the dwg so it zooms in 3d which I dont want just want to work in UCS W. Set that but it returns to the view in 3d. Not sure what you have done.

    Even picking a master block I think will have to bedit it so say layer is "0" and color Bylayer, so I can insert a new one on a different layer.

    It may need the original block at true correct size, ie the non suffix block. Say "S_KOPF_STEHEND" plus all the others. You may hav eto make these blocks, save in say a DWT and then paste or insert your dwg into that dwt.

    Just inserted the dwg into my DWT and now all sprinklers blocks are same size. But still going around in Circles.

  • You have something turned on in the dwg so it zooms in 3d which I dont want just want to work in UCS W. Set that but it returns to the view in 3d. Not sure what you have done.

    No idea.

    Usually I work mostly in 3D only. Or maybe ISO.

    If you have nothing selected and deactivate "perspective" in Property Panel - will it look like you need ? ?

  • The blocks whilst they have a common prefix, the size is always scale 1, but the blocks are not one size. 

    Thank you, good find.

    I looked at the Instances and a little at the Blocks but so far have not been able to find any differences beides the suffix …..
    So this explains why Blockify/Overkill ignores these.

    But I can't find the scaling issue inside Blocks. Where do you see that ?
    For me also all Instances are 1:1 scale. And I do not see differences in Block's geometry. I do not see geometry that could have a Scale and e.g. that filled Circle in the Sprinklers Blocks (for annotation ?) seems to show the same Area in each Block.


    And I ask myself why ?
    It is only Bricscad that made Blocks from all. Everywhere else these are just BIM Objects, with all their own Geometry definition, copies, not any instancing. Can't imagine those were added to the source file using different scales.