mcneel / ghpython

A Grasshopper component for Rhino.Python
http://www.food4rhino.com/project/ghpython
117 stars 34 forks source link

AddText Runtime Error #38

Closed sbaer closed 10 years ago

sbaer commented 12 years ago

http://python.rhino3d.com/threads/1028-rs.AddText-gives-Runtime-error-(MissingMemberException)

If grasshopper does not have support for the text that this script is supposed to generate, then it may make sense to provide more descriptive exceptions. Maybe something like "Text objects are not supported grasshopper, so this python script can not create them" Of course if text objects are supported, then we just need to fix the function.

piac commented 12 years ago

This should be now postponed till Grasshopper supports Text.

piac commented 10 years ago

Changed the text to state:

This type of object is not supported in Grasshopper, so this Python script cannot create it. You might want to use 'scriptcontext.doc = Rhino.RhinoDoc.ActiveDoc' to use the Rhino doc, instead? If you do, remember to restore it: 'scriptcontext.doc = ghdoc'.