Grasshopper

generative modeling for Rhino

Mark Fyson
  • Male
  • Newcastle
  • United Kingdom
Share on Facebook
Share Twitter
  • Blog Posts
  • Discussions (5)
  • Events
  • Groups
  • Photos
  • Photo Albums
  • Videos

Mark Fyson's Discussions

Controlling location of panel content stream
5 Replies

Hi,Is there a way to set the file name and location to which a panel streams its contents other than right clinking on the panel and setting it manually e.g. from another panel containing…Continue

Started this discussion. Last reply by AB Feb 21, 2012.

Get location of current grasshopper file
5 Replies

Hi,I want to create a grasshopper VB component that outputs the directory in which the active grasshopper file is saved. In Excel VBA it would be ActiveWorkbook.path but I can't find the GH…Continue

Started this discussion. Last reply by Jonathan Rabagliati Aug 17, 2012.

 

Mark Fyson's Page

Latest Activity

Jonathan Rabagliati replied to Mark Fyson's discussion Get location of current grasshopper file
"Giulio, What is the python equivalent of: owner.OnPingDocument().FilePath   I'm trying to find the directory of grasshopper .gh file from within a python component in order to have a relative path to another .py…"
Aug 17, 2012
AB replied to Mark Fyson's discussion Controlling location of panel content stream
"Mark, Thanks for sharing the screenshot... it does really help fill in the blanks. I am starting to get the hang of it. "
Feb 21, 2012
Mark Fyson replied to Mark Fyson's discussion Controlling location of panel content stream
"Hi Sorry for slow reply. Please see attached the full component script which will hopefully fill in the blanks. Mark"
Feb 21, 2012
AB replied to Mark Fyson's discussion Controlling location of panel content stream
"Victor Leung's TextWriter worked great for what i needed... This thread was helpful http://www.grasshopper3d.com/forum/topics/suggestion-improve-text?xg_source=activity"
Feb 19, 2012
AB replied to Mark Fyson's discussion Controlling location of panel content stream
"Dear Mark, Thanks for sharing your solution... I am a real beginner when it comes to creating VB components... I have been trying to insert the code you generously offered up... into a VB component, but I think I am missing something obvious. I have…"
Feb 16, 2012
Mark Fyson replied to Mark Fyson's discussion Controlling location of panel content stream
"Managed to answer my own question in the end and created an VB component using the FileStream writer:       Dim FILE_NAME As System.IO.FileStream      FILE_NAME =…"
Feb 16, 2012
Mark Fyson posted a discussion

Controlling location of panel content stream

Hi,Is there a way to set the file name and location to which a panel streams its contents other than right clinking on the panel and setting it manually e.g. from another panel containing "C:\temp\output.txt"? In other words, is there a Write version of the Read File component or is there an easy way to create one through script?ThanksMarkSee More
Feb 15, 2012
David Rutten replied to Mark Fyson's discussion Get location of current grasshopper file
"I just added a FilePathChanged event to the GH_Document, so in future releases you can be informed whenever the FilePath property gets a new value. -- David Rutten david@mcneel.com Poprad, Slovakia"
Feb 3, 2012
Mark Fyson replied to Mark Fyson's discussion Get location of current grasshopper file
"That's great, thanks a lot. Mark"
Feb 2, 2012
Giulio Piacentino replied to Mark Fyson's discussion Get location of current grasshopper file
"Hi Mark, for a simple implementation of FilePath as David mentions, see this example.It would be, in short: owner.OnPingDocument().FilePath Thanks, - Giulio_______________giulio@mcneel.com"
Feb 2, 2012
David Rutten replied to Mark Fyson's discussion Get location of current grasshopper file
"Hi Mark, a grasshopper document might not have a filepath yet if it hasn't been saved. Or if it is a nested document (such as a cluster) within another document. When a document is loaded from a file, you can get the file location using the…"
Feb 2, 2012
Mark Fyson posted a discussion

Get location of current grasshopper file

Hi,I want to create a grasshopper VB component that outputs the directory in which the active grasshopper file is saved. In Excel VBA it would be ActiveWorkbook.path but I can't find the GH equivalent, please help!Thanks in advanceMarkSee More
Feb 2, 2012
Mark Fyson is now a member of Grasshopper
Feb 2, 2012

Profile Information

Company, School, or Organization
Arup

Comment Wall

You need to be a member of Grasshopper to add comments!

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service