Advertisement

[x]
Attachment Details

Script to copy pertinent lines of a code from the original

[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4
Hello,
I 've got about 10,000 lines in a macro and I would like a script to go through and pick a few out.  Below are some sample lines of the macro.  Below that are the original file names that I want used to pull out the macro lines.
For:
"gr_lc_01b_xxx" & "gr_lc_01_xxx"
The macro lines for these files begin with arcraster, reclass, and project

"gr_slope_xxx"
The macro lines for these files begin with arcraster, fuzzy, and project

Notice the names go from:
"gr_slope_xxx" to "gr_slope_xxx_f" to ""gr_slope_xxx_fp" during each new operation (arcraster, fuzzy, reclass, project)

I currently have this in an excel file or a text file. I would like a script to go through and pick out the desired lines of the marco. I appeciate annotated code so I can figure out what is going on.

Thank you kindly,
MJ

-------------------------------------------------
arcraster x 4*gr_lc_01b_150.asc*gr_lc_01b_150*2*albersus*meters*1
...
arcraster x 4*gr_slope_261.asc*gr_slope_261*1*albersus*meters*1

---------------------------------------------------
fuzzy x 1*gr_slope_128*2*gr_slope_128_f*0*0*0*15
...
reclass x I*gr_lc_01b_111*gr_lc_01b_111_f*2*0*-999999*1*-9999*1
------------------------------------------------

project x 1*gr_lc_01b_287_f*albersus*gr_lc_01b_287_fp*albersus*1136667.7913099*1152777.7913099*1621348.25834741*1637758.25834741*537*548*0*1
project x 1*gr_lc_01b_288_f*albersus*gr_lc_01b_288_fp*albersus*661233.500753505*677343.500753505*1588741.28907559*1605181.28907559*537*548*0*1
...
project x 1*gr_slope_285_f*albersus*gr_slope_285_fp*albersus*1057326.7685045*1073436.7685045*1683972.99545674*1700412.99545674*537*548*0*1
project x 1*gr_slope_286_f*albersus*gr_slope_286_fp*albersus*1055852.11935604*1071962.11935604*1686482.43974306*1702922.43974306*537*548*0*1
-----------------------------------

gr_lc_01b_150.asc
gr_lc_01b_151.asc
gr_lc_01b_152.asc
gr_lc_01b_202.asc
gr_lc_01b_238.asc
gr_lc_01b_239.asc
gr_lc_01b_314.asc
gr_lc_01b_353.asc
gr_lc_01b_354.asc
gr_lc_01b_355.asc
gr_lc_01b_357.asc
gr_lc_01b_368.asc
gr_lc_01b_385.asc
gr_lc_01b_386.asc

gr_lc_01_150.asc
gr_lc_01_151.asc
gr_lc_01_152.asc
gr_lc_01_202.asc
gr_lc_01_238.asc
gr_lc_01_239.asc
gr_lc_01_314.asc
gr_lc_01_353.asc
gr_lc_01_354.asc
gr_lc_01_355.asc
gr_lc_01_357.asc
gr_lc_01_368.asc
gr_lc_01_385.asc
gr_lc_01_386.asc

...

gr_slope_114.asc
gr_slope_150.asc
gr_slope_178.asc
gr_slope_187.asc
gr_slope_238.asc
gr_slope_270.asc
gr_slope_305.asc
gr_slope_313.asc
gr_slope_357.asc
gr_slope_359.asc
gr_slope_360.asc
gr_slope_368.asc
gr_slope_373.asc
gr_slope_374.asc
Related Solutions
Related Solutions
 
Loading Advertisement...
 

Rank: Guru

Expert Comment by sungenwang:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Author Comment by mgjust:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 

Rank: Guru

Expert Comment by sungenwang:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 

Rank: Guru

Expert Comment by sungenwang:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Author Comment by mgjust:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 

Rank: Guru

Expert Comment by sungenwang:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Author Comment by mgjust:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 

Rank: Guru

Expert Comment by sungenwang:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 

Rank: Guru

Accepted Solution by sungenwang:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Author Comment by mgjust:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
Loading Advertisement...
20080924-EE-VQP-41 / EE_QW_2_20070628