Grasshopper

generative modeling for Rhino

Johannes Weninger
Johannes Weninger
  • Male
  • Innsbruck
  • Austria
Share on Facebook
Share Twitter
  • Blog Posts
  • Discussions (6)
  • Events
  • Groups
  • Photos
  • Photo Albums
  • Videos

Johannes Weninger's Friends

  • Jon Mirtschin

Johannes Weninger's Discussions

Grasshopper and MouseEvents in C#
7 Replies

hello guys,i'm currently trying to implement a mouselistener into an grasshopper component, but i'm a little bit lost.i wrote a small testclass and implemented it in my component and everything works…Continue

Tags: MouseListener

Started this discussion. Last reply by Johannes Weninger Sep 12, 2010.

Importing 3dm using openNurbs.net
2 Replies

hey guys,i'm currently working on a small fabrication program which uses openNurbs for importing and exporting rhino files.i am currently stuck in writing the import method. what i know is the…Continue

Tags: import, openNurbs

Started this discussion. Last reply by Johannes Weninger Jul 30, 2010.

 

Johannes Weninger's Page

Latest Activity

Profile Icon
Johannes Weninger replied to Johannes Weninger's discussion 'Grasshopper and MouseEvents in C#'
ok, thanks, i'll try that
Sep 12, 2010
Profile Icon
robert cervellione replied to Johannes Weninger's discussion 'Grasshopper and MouseEvents in C#'
yes i did use this in a grasshopper def. the base.defwndProc works because the function is inside a class that inherits form window.forms
Sep 12, 2010
Profile Icon
Johannes Weninger replied to Johannes Weninger's discussion 'Grasshopper and MouseEvents in C#'
@ David: Working with timers will not work for me, because later I would like to try to do some kind of MOuse-Logging and store some click positions in a list. Therefore I tried now to P/Invoke user32 and kernel32. In a dummy project this works now…
Sep 12, 2010
Profile Icon
robert cervellione replied to Johannes Weninger's discussion 'Grasshopper and MouseEvents in C#'
here is some code i use to trap all double click events. i use this in a special case so it may or may not work for you protected override void DefWndProc(ref System.Windows.Forms.Message m) { const long WM_NCLBUTTONDBLCLK = 163; if ((long)m.Msg…
Sep 11, 2010
Profile Icon
David Rutten replied to Johannes Weninger's discussion 'Grasshopper and MouseEvents in C#'
There is no mechanism in DotNET for responding to all mouse events. When your code is running inside a Windows.Forms.Form or Windows.Forms.Control you can get the events that go into that one object. If you need to listen to all mouse events…
Sep 10, 2010
Profile Icon
Johannes Weninger replied to Johannes Weninger's discussion 'Grasshopper and MouseEvents in C#'
Hi David, I basically want to catch all windows mouse events. So in the test class I just tryed to an overall buttonPressed event that saves the last pressed button in the state string. My component the calls the last pressed Button with getState()…
Sep 10, 2010
Profile Icon
David Rutten replied to Johannes Weninger's discussion 'Grasshopper and MouseEvents in C#'
Hi Johannes, which mouse events do you want to catch? Rhino Viewport? Grasshopper Canvas? Only mouse events within the bounds of your Component? All windows mouse events? -- David Rutten david@mcneel.com Poprad, Slovakia
Sep 10, 2010
Profile Icon

Grasshopper and MouseEvents in C#

hello guys,i'm currently trying to implement a mouselistener into an grasshopper component, but i'm a little bit lost.i wrote a small testclass and implemented it in my component and everything works just fine when the mouslistener is out-commentated. when not, grasshopper throws an exception by the target of inovacation at startup.below the mouselistener test class:class test    {        private String state= "start";        private System.Windows.Forms.MouseEventHandler MouseDown;     …See More
Discussion posted by Johannes Weninger Sep 9, 2010
Profile Icon
Johannes Weninger replied to Johannes Weninger's discussion 'Importing 3dm using openNurbs.net'
thanks, i'll do this
Jul 30, 2010
Profile Icon
Damien Alomar replied to Johannes Weninger's discussion 'Importing 3dm using openNurbs.net'
I'd suggest asking this question on the plug-n/developers newsgroup. You'll likely get a better answer there. http://news2.mcneel.com/scripts/dnewsweb.exe?cmd=xover&group=rhino.plug-ins
Jul 30, 2010
Profile Icon

Importing 3dm using openNurbs.net

hey guys,i'm currently working on a small fabrication program which uses openNurbs for importing and exporting rhino files.i am currently stuck in writing the import method. what i know is the exactly content of the rhino file which i am loading: 12 points. what i want are the coordinates of these 12 points. i am writing in c#.so far i am loading the rhino file and checking the layertable and objectstable. from that i am able to get exactly these 12 points what i am looking for and i save them…See More
Discussion posted by Johannes Weninger Jul 30, 2010
Profile Icon
Johannes Weninger is now a member of Grasshopper Jul 30, 2010

Profile Information

Company, School, or Organization
dna lab
Web or Blog
http://dnalab.eu

Comment Wall

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

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Members

  • CODA
  • Carlino Antonio
  • Brimet Silva
  • Xiaoyi Wu
  • Andrew Butler
  • Matthias Standfest
  • archicadonline
  • Amirsina Rezaei
  • David Rutten
  • Barry Mair
  • lucas cañada
  • daniel camiro

Photos

  • Add Photos
  • View All

© 2012   Created by Scott Davidson.   Powered by .

Badges  |  Report an Issue  |  Terms of Service