Load plugin on condition of textfile
-
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 -
Okay, I found a solution, I should have had the if statement in the plugin I wanted to run.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement