-
Posts
4281 -
Joined
Content Type
Profiles
Forums
Gallery
Everything posted by MarkMc
-
-
Thanks Eric but I'm not getting anywhere and been at this all day- Did you open the file I posted? already had gsub written. I'll pick this up again tomorrow, fried, thanks again
-
Ok so I got that to work so long as I add the extra slashes and quotes manually. Note that above I list a statement with File.read ("C:/somewhere/doc.text") that also reads when I do it manually. So I have two ways to MANUALLY alter a path and get it to read. However if I go and write something to automatically add the extra slashes and the quotes I'm pretty sure I'm going to end up with the same problem. How do I use the result to read? I want to have it so someone can paste a path into the Supplier field and have it read properly without user needing to adjust the path statement.
-
I still don't see how to make that work even if I don't use the macro- tried this after making a new text file, copying the path and pasting get error- f=C:\\Users\mark\Documents\A_Current\test new.txt fh=open f a=fh.read fh.close a are you saying to add this file as an rb to the scripts folder? prefer not to go there for this.
-
Glen I just realized that I didn't include the file so naturally you get an error for the read macro. I think to find out if this works on both I first have to get the longer macro to read on windows. Then will try posting something again, thanks.
-
Eric- I can read a file with a path as in For that I changed the backslashes to forward before placing in the macro-that is a nogo in the long run. What I can't get to read is when I generate the altered path within the macro. Tried more than a few variations. If what you post will work I don't understand how to use it and utilize the altered path in the result shown.
-
Your answer in the other post was what I needed, thanks.
-
Thanks Glen, was afraid that would happen. Guess I either have to add some code or write a version specific to a Mac. That latter is easier for me but I'm going to be giving this away and may be confusing for others, and I guess it's better if it worked either way. Guess I have to check to see if Ruby in Chief can understand what OS it's on.
-
On the material property panel (in reference manual) "Diffuse controls the degree to which the material’s main color contributes to its appearance" Diffuse is typically set to 100% so unlikely to help. Use a lighter color or a different base material. If you can't be what you want that way then it's photoshop time.
-
I can read a file using- File.read ("D:/Mark/Documents/_ Current Kit/ _Price/test_1.csv") works once backslashes are changed to forward -requires parenthesis and quote So I copy and paste a path statemtent into an OIP filed (using supplier) and then use a macro to change the slashes and add parenthesis and quotes that works fine using- #first reads the file from the Supplier field in the cabinet DBX, then it changes the back slashes to forward slashes so Ruby can use it myFile= owner.supplier.gsub(/\\/,'/') # next need to parenthesis and quotes for the file to be found -looks like ("C:/some file...") path= ('("')+myFile+('")') I've tried a few variations on that which also work then I'm trying to read that file. question is once I have that result how can I get Ruby to read the file? Also if someone on a Mac can open the program and let me know if you get the same results as the posted image please? macro test.plan
-
Quick and Easy Validator for Andersen 100 Fiberex Windows.
MarkMc replied to BrownTiger's topic in Tips & Techniques
Thanks, will be informative with what I'm doing currently. -
Working on a macro that accesses a file and Ruby wants path statement to have forward slashes while Windows uses back slashes. I'm under the impression that Macs are Unix based so if one were to copy a path statement on a Mac it would already have forward slashes-Is that correct? Secondly is it easy enough to copy a files path statement on a Mac? I know how to do it on Windows, just trying to cover bases for other users.
-
Already described above. If molding doesn't match change it in the cabinet DBX or place a new cabinet and configure it to match the one posted.
-
I use molding polylines instead of having them as part of the cabinet for this and a few other reasons. To get the valance to accept cabinet defined molding you need a cabinet. Place valance in a blank plan, convert to symbol, cabinet door. Then use that on a cabinet defined as in the attached. Just noticed you are on X9- sorry but the plan is in X10. Cabinet _box construction framed, separation 0" Front of cabinet is side panel inset and uses the valance. Sides and back are defined as openings. Valance Plan.plan
-
Not being coy, this is pretty basic so I'd suggest you read a little, it will be more useful in the long run. Open the cabinet, go to front,sides back tab-press F1 key, when help pops up select "front sides back", scroll down to section #2. Everything you need to know is there.
-
Looking to Buy X5 (32 bit) for Windows XP
MarkMc replied to SeekingX5License's topic in Sales Related Questions
NO-only destroy/uninstall them, old versions can't be transferred. From transfer agreement- -
Well sort of- a copy of the path with standard backslashes "C:\Users\Mark\Documents\Chief Architect Premier X10 Data\Scripts\mod_test.txt" produces an error OTOH, reversing the slashes works , with or without the drive specified if it is on C ("/Users/Mark/Documents/Chief Architect Premier X10 Data/Scripts/mod_test.txt") -on another drive need all but still have to reverse the slashes. I don't understand what happened when I had several of these working last night-pcan only guess pilot error of some sort....pretty sure I saved before closing, maybe I didn't, maybe I changed the directory while messing around and the simpler form worked-maybe it was late. I'd prefer the short form which I've seen listed in lots of places just don't know how I got it working yesterday. Thanks though... Still have those original questions about safety if you or anyone would care to comment.
-
K, didn't think so, was trying to simplify something I already have.
-
Want to access the label from "Specify label" in the dbx.
-
I don't understand it. This worked fine last night, shut down computer, turned it on and get this. The only way I could get it back was to change directory which required changing safety level.
-
Is there any way to access a specified label in Ruby? Avon Catalog | Avon Brochure | Target Red Card | Target Ad
-
Working on this cabinet price thing again. Yesterday I set up to read a text file and got that to work. Opened plan this morning and get evaluation errors. Which I don't' understand. Checked with Dir.pwd and to find that Ruby is using the windows/system32 directory. Since I'm going to be giving this off to some others I don't want to use that. I found that to change directory I have to change the Safe level to 1. Wondering if that is seriously risky to give to others? I first tested a macro that simply changed the directory-once I did that the File.read macro worked. (I'm guessing that since the change directory executed) Does that create other problems that I don't know about? I'm thinking of setting up a directory "C:\Users\CA" to place the files. At least on Windows that is the simplest for me to hand off to others to create themselves and write into the macro? Don't know about on a Mac? I'm assuming that I need to write in some form of escape for this, yes?
-
FWIW-my Sager has a desktop CPU hence no intel card. I use a 27" 3k as primary montior (wireless keyboard) a 24" 1080 and the laptop at 1080, occastional add in a 42" TV by HDMI or wireless-no problems moving windows-lots of windows, including multiple PBRs. I think your issue is drivers or hardware. You should find that X9 runs fine. I use 9 on the Spectre doing measures because it runs fine there but 10 gets laggy INO running 9 won't tell you much IMO.
-
What is the resolution of the external?
-
Exactly ,machines with laptop type CPU use the integrated graphics card to drive external monitors regardless of what the GPU a program is using. You say always a 3d view. Is it always a PBR? There is a check box to show older versions in the digital locker.