Grasshopper

algorithmic modeling for Rhino

Function "RMA.Rhino.MRhinoDoc.INstanceDefinitions" does not work anymore

on the last Rhino 5 update....


Does anyone know how to replace it?

Views: 843

Replies to This Discussion

still alive ...(toujours vivant ?)

It's the old SDK, I no longer support the old SDK as I've completely lost touch with it. Please try in RhinoCommon and see if it works there.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Yes!

In order to get the list of blocks name into a block I had to use this command :
For i = 0 To block_table.Item(block_index).ObjectCount - 1
Outparameter=block_table.Item(block_index).Object(i).Attributes().m_name.tostring
Next
Since the last update of rhino 5 
It doesn't work any more...
It works for several blocks but not for all...
Can you help me?

Is it possible to write a SuperBlockNameToRhinoName script that do the same for all the nested blocs?

Sub BlockNameToRhinoName ()

Dim strObject, strObjects, strBlockName


strObjects = Rhino.GetObjects("Select blocks", 0)

If IsNull(strObjects) Then Exit Sub

For Each strObject in strObjects

If Rhino.IsBlockInstance(strObject) Then

strBlockName = Rhino.BlockInstanceName(strObject)
Rhino.ObjectName strObject , strBlockName

End If

Next

End Sub

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service