Python Forum
Import Text, output curve geometry
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Import Text, output curve geometry
#1
Hello Pyton Community,

New user here and a complete newbie to Python. I understand this question is likely very advanced for a new beginner to this language and i am a little impaitent but hopefully I can get some help.

I am a Rhino/Grasshopper (v.6) user and would like to learn how to import a lot of names (500+) from any of the following - .txt .doc .xls or .csv file

The first goal is to:
1. import the names which are in upper and lower case (500+ names)
2. apply a system font to each line
3. control text height of each line
4. control the vertical spacing between each line - base line to base line

then,

5. output the result as curve geometry back into the Rhino/Grasshopper (v.6) environment

If I can get help to get to step 4, I think I can handle the rest inside grasshopper, however, if its possible, can the following be achieved inside python?

5.bouding box around each text line to determine the length of each line
6. move each line of text from the lower left corner point of each bounding box to another set of points created in rhino/grasshopper

this is too advanced for a new beginner to grasp (at least me) which is why I reaching out to the community for assistance.

any insight/advice/help will be greatly appreciated.

A
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Learning curve astral_travel 1 219 Mar-10-2024, 08:00 AM
Last Post: snippsat
  How can I design shapes on a curve in python? mervea 2 765 Sep-14-2023, 01:04 PM
Last Post: Pedroski55
  Fitting data to a curve daaegp 1 567 Jun-30-2023, 08:06 PM
Last Post: Gribouillis
  Search text in PDF and output its page number. atomxkai 21 8,683 Jan-21-2022, 06:20 AM
Last Post: snippsat
  Find factor to match test curve to golden curve SriRajesh 0 1,523 Jun-17-2021, 04:39 AM
Last Post: SriRajesh
  Fitting Gaussian curve to data file Laplace12 0 2,673 Jun-09-2021, 10:45 AM
Last Post: Laplace12
  Getting a GET request output text into a variable to work with it. LeoT 2 2,889 Feb-24-2021, 02:05 PM
Last Post: LeoT
  Increment text files output and limit contains Kaminsky 1 3,138 Jan-30-2021, 06:58 PM
Last Post: bowlofred
  search of a curve fitting function bluffy5 2 2,377 Dec-13-2020, 09:53 AM
Last Post: ndc85430
  Census geocoding services API. How do I import output into dataframe? SAS2PYTHON 3 2,522 Nov-10-2020, 11:10 PM
Last Post: SAS2PYTHON

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020