Author Topic: Creating Surface from Text Spots  (Read 6354 times)

0 Members and 1 Guest are viewing this topic.

bmossman

  • Guest
Creating Surface from Text Spots
« on: August 25, 2009, 09:56:13 AM »
I have spot elevations made up of just plain text with no "Z" values.  I could be here all day inserting points on top of the text. Is there a way to generate points from the text values?

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Creating Surface from Text Spots
« Reply #1 on: August 25, 2009, 10:01:46 AM »
Open a brand new file
use MAP to attach this file with the Spot Elevations in it as a source file
Perform a MAP QUERY against this file, change the Query type to REPORT mode.
use the expressions of .X,.Y, .TVALUE to extract the x,y, and z to  a report file
open this file with Excel, and save-as to CVS (don't ask why)
import the report file as Points, or use the terrain explorer to read from this point file to create your surface model.
Detach the source file
and have a nice day!
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Creating Surface from Text Spots
« Reply #2 on: August 25, 2009, 10:30:37 AM »
use the expressions of .X,.Y, .TVALUE to extract the x,y, and z to  a report file
Can we see a screen shot of the dialog box, please? I can't make those expressions work.

thanks
TheSwamp.org  (serving the CAD community since 2003)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Creating Surface from Text Spots
« Reply #3 on: August 25, 2009, 10:40:40 AM »
Apologies, for the generalisation...that was more or less an abstract of the process...(bad help is probably worse than none)

the actual expressions

.X1

.Y1

^AcDbMText.Text.Contents    OR one could use .STRING 
« Last Edit: August 25, 2009, 10:53:24 AM by mjfarrell »
Be your Best


Michael Farrell
http://primeservicesglobal.com/

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Creating Surface from Text Spots
« Reply #4 on: August 25, 2009, 10:41:46 AM »
use the expressions of .X,.Y, .TVALUE to extract the x,y, and z to  a report file
Can we see a screen shot of the dialog box, please? I can't make those expressions work.

thanks

are you and the Bmossman working together there Chief?
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Creating Surface from Text Spots
« Reply #5 on: August 25, 2009, 10:52:35 AM »
Apologies, for the generalisation...that was more or less an abstract of the process...
Not a problem. I've never tried that before. I can remember a time or two when I could have used that so I thought I'd give it a try.

Not having any luck with the report, i'll study the doc's a bit more.

thanks
TheSwamp.org  (serving the CAD community since 2003)

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Creating Surface from Text Spots
« Reply #6 on: August 25, 2009, 10:52:48 AM »
use the expressions of .X,.Y, .TVALUE to extract the x,y, and z to  a report file
Can we see a screen shot of the dialog box, please? I can't make those expressions work.

thanks

are you and the Bmossman working together there Chief?
Nope! :-)
TheSwamp.org  (serving the CAD community since 2003)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Creating Surface from Text Spots
« Reply #7 on: August 25, 2009, 10:55:08 AM »
Apologies, for the generalisation...that was more or less an abstract of the process...
Not a problem. I've never tried that before. I can remember a time or two when I could have used that so I thought I'd give it a try.

Not having any luck with the report, i'll study the doc's a bit more.

thanks

what part is or isn't working for you?  other than my misdirection on the expression values to use?
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Creating Surface from Text Spots
« Reply #8 on: August 25, 2009, 11:05:25 AM »
Apologies, for the generalisation...that was more or less an abstract of the process...
Not a problem. I've never tried that before. I can remember a time or two when I could have used that so I thought I'd give it a try.

Not having any luck with the report, i'll study the doc's a bit more.

thanks

what part is or isn't working for you?  other than my misdirection on the expression values to use?
When I used 'X1' and 'Y1' I didn't get any values. I have since figured it out, sort of. I can get the X,Y values from the MTEXT object just fine. As long as the MTEXT is inserted in the proper location, or some how associated with a point for instance my method would work.
TheSwamp.org  (serving the CAD community since 2003)

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Creating Surface from Text Spots
« Reply #9 on: August 25, 2009, 11:06:51 AM »
open this file with Excel, and save-as to CVS (don't ask why)
Why not just save the file as <filename>.csv ? It is already comma delimited. Well mine is! :-)
TheSwamp.org  (serving the CAD community since 2003)

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Creating Surface from Text Spots
« Reply #10 on: August 25, 2009, 11:10:58 AM »
This is what I have.
TheSwamp.org  (serving the CAD community since 2003)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Creating Surface from Text Spots
« Reply #11 on: August 25, 2009, 11:11:45 AM »
Correct, as in the case of a(n) aerial survey drawing, this process is slightly thwarted, when they move the elevation text associated with the elevation node around.  However in most instances I have found that the node has the correct .Z and the text location is a non-issue. There have been instances where it is easier to use the liner elements, breaklines and contours, to extract surface point elevations from.   The process is similar, it all depends on the data one has to work with.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Creating Surface from Text Spots
« Reply #12 on: August 25, 2009, 11:16:04 AM »
open this file with Excel, and save-as to CVS (don't ask why)
Why not just save the file as <filename>.csv ? It is already comma delimited. Well mine is! :-)


I asked you to NOT ask why....now you've gotten me all riled up.

Because, when you attempt to insert that CSV file you will get an error...because about 7(Seven) versions ago autodesk broke the report writer, and it doesn't write out a clean ascii file that one can use to import points. 
I've been ranting like a mad dog all this time about it, and they wont fix it....


Be your Best


Michael Farrell
http://primeservicesglobal.com/

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Creating Surface from Text Spots
« Reply #13 on: August 25, 2009, 11:17:44 AM »
The process is similar, it all depends on the data one has to work with.
Indeed. None the less that is a pretty neat trick! I'll try and remember that one for later use. :-)
TheSwamp.org  (serving the CAD community since 2003)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Creating Surface from Text Spots
« Reply #14 on: August 25, 2009, 11:18:51 AM »
This is what I have.


You need a LOCATION statement as well as a property condition.

It doesn't know where in the file to look without that...
Be your Best


Michael Farrell
http://primeservicesglobal.com/