Load plugin on condition of textfile

Load plugin on condition of textfile

Postby UncleString » Thu Dec 06, 2018 9:16 pm

I have an excel file that opens sketchup, creates the drawing, then closes sketchup.

NOTE:
I have changed my way of thinking, now before excel opens sketchup, it will change a word in a text file to "go", then when the plugin works it's magic, it will change the word in the textfile to "no go"

It still seems to load the plugin even it the textfile is "no go"


File.open("C:/TestFolder/Doit with Sketchup/RunPlugIn.txt").each do|line|
puts line
UI.messagebox line
if line == "go"
load "testOpenSketchup.rb"
UI.messagebox "Go"
elseif line=="no go"
puts "Nope"
end
end
0

UncleString 
 

Re: Load plugin on condition of textfile

Postby UncleString » Mon Dec 10, 2018 3:09 pm

Okay, I found a solution, I should have had the if statement in the plugin I wanted to run.
0

UncleString 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

cron

Who is online

Users browsing this forum: Bing [Bot] and 6 guests

Visit our sponsors: