SOFiSTiK Forum

It is currently Fri Jul 19, 2019 8:10 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Mar 15, 2013 11:31 pm 
Offline

Joined: Wed Dec 12, 2012 8:32 am
Posts: 8
Does Sofistik, with the Rhino Interface, integrate in Grasshopper too?

Best regards
Mauro Sogni


Top
 Profile  
 
PostPosted: Tue Mar 19, 2013 12:43 pm 
Offline
User avatar

Joined: Fri Feb 01, 2008 12:36 pm
Posts: 11
Dear Mauro,

no, we don't provide any custom Grasshopper components which could be used to access or generate structural objects.

The structural data, stored at the Rhino objects however, can be accessed from RhinoScript or RhinoCommon. So, it could be possible to write custom VB.net or C# components in Grasshopper and access the structural data from there. But we haven't tested this alternative right now.

Best regards,
Andreas


Top
 Profile  
 
PostPosted: Fri Mar 22, 2013 7:17 am 
Offline

Joined: Wed Dec 12, 2012 8:32 am
Posts: 8
Ok thank you for the infos

Best regards, Mauro


Top
 Profile  
 
PostPosted: Fri Jul 07, 2017 2:36 pm 
Offline

Joined: Thu Apr 16, 2015 4:07 pm
Posts: 2
Dear Andreas,

can you provide further info on how to access the structural data stored in the Rhino objects?
My aim is to retrieve (and later modify) the SPT number stored in point objects.

I got as far as extracting the UserDataList from the Rhino objects. How do I proceed?

VB.Net script in Grasshopper:
Code:
Private Sub RunScript(ByVal points As Guid, ByRef A As Object)
    Dim test As String
    Dim obj As Object
    Dim UD_liste As Rhino.DocObjects.Custom.UserDataList

    obj = RhinoDocument.Objects.Find(points)

    UD_liste = obj.Attributes.UserData
    Print(UD_liste.Count.ToString)
  End Sub
 


Kind regards,
Patrick


Top
 Profile  
 
PostPosted: Tue Feb 27, 2018 4:23 pm 
Offline

Joined: Tue Feb 27, 2018 3:44 pm
Posts: 2
For anyone having similar issues, I found the solution to this problem here:

https://discourse.mcneel.com/t/access-c ... t/54992/15


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group