Forgot password?

Create an account!


« back

RhinoScript – replace identical geometry with block instances


Please log in to write a message.

  • 2. Hanno (Sep 09, 2009 10.09):


    it's been a while since you wrote the question, but here are my 2 cents:

    - I don't know of any script like this

    - The main issue in writing such a script is writing an efficient geometry comparision algorithm. I would start with writing a script that lets you pick any object and shows you all objects with the same geometry, no matter where they are placed. Then start to look for rotated objects. Then scaled etc. The whole block thing is easy, as soon as you have a decent comparision algorithm.

    - So I would say the overall difficulty clearly depends on the desired power of your comparision algorithm. Finding moved objects is easy, but as soon as you start to take scaling into account, it gets more difficult.



  • 1. jacek.jaskolski (Sep 04, 2009 17.42):

    Hi all,

    I'm interested in writing a script that would replace all identical geometry in a drawing with corresponding block instances stored in the block table.

    As I imagine it, the script would go through each block definition stored in a file and compare it with all the objects in the drawing. Then, it would replace it with block instances, maintaining the proper insertion point, angle, scale and normal.

    My questions to you:

    - has anyone come acros a script like this?
    - if not, what's your opinion on the difficulty level of writing a script like this?

    Many thanks,



Why are these buttons gray?