Ditto what Pierre is saying. Id like to be able to add labels that show the definition name rather than the name (component definition rather than instance name) . Is this possible?
At the moment if I add a label to a component it only gives me the instance name rather than definition name.
Posts made by samyell77
-
RE: Place Text Label script (looking for one)
-
RE: Codec incompatible with video size selected? ERROR
Hi Macker,
Cant remember exactly how I resolved it but have just checked my settings in export animation. I think I simply changed the codec to Microsoft Video 1 - thats what I have it set on now and am able to export. Try a few different codecs but that one works for me....
although not sure this is best quality?
Cheers -
RE: Layout wishlist
Just wanted to bump this up the list again - really hoping that LO gets a good going over soon
•General speed increases, re-draws and re-links take an age with some files.
•Better handling of files that are being accessed by machines on different operating system platforms so that links are not broken due to drive mapping issues on different platforms.
•Stop render function so you can choose to stop a page from rendering if you spot an error instead of having to wait for every view to render (I know there's auto render but it would be great to be able to stop a page from updating and be able to update views individually or collectively)
•Ability to use drawing labels with common and page only editable sections
•Infinite zoom
•Better handling of vector views - too slow at present
•Automatic page numbering - and ability to add pages in order, ie add a page at the beginning of a 10 page doc and it will be page 01 rather than page 11. Number pages by order but be able to change names
•Batch export for PDFs from LO documents - being able to export a page and have it take its name from the page name in LO rather than the overall LO document.
•Multiple page sizes in same document (A4 and A1 for example)
•Ability to reference model info from selected SU models in order to get component counts
•Better handling of spread sheet data (cells, columns, tabs etc)
•True text box sizes instead of oversized text boxes ie text box is a snug fit to the text rather that lots of spare space to left and right of text
•Styles pallet for text - ability to name styles for dimensions, body text, notes, titles etc
•Better ability to link scenes with LO so that sections and elevations retain their scale and dont throw dimensions out
•Latest saved view causes lots of issues - you should have to save a scene in order to send a file to LO
•Let the RUBY developers loose on Layout.... Please - this is the main strength in SU but something that is sadly lacking in LOThe biggest one for me is speed and stability. LO is WAY too slow. I have a relatively new, well spec'd machine but LO is incredibly sluggish, laggy and unstable. Lots of ram, half decent gfx card and quad 2.26 CPU that deals perfectly happily with very large Photoshop, illustrator and indesign files but fall on its A55 when I make minor changes to a small LO file - like moving a text box?!!?
LO is long overdue an overhaul....
-
RE: Ungroup - but NOT explode?
Thanks Dave,
Will give that a go - not tired using outliner like that yet but will have a play with it.
Cheers
Sam -
Ungroup - but NOT explode?
Anyone know if there is a way to ungroup groups without exploding components? Trying to avoid having to explode, deselect all, then re-select groups and explode again. Is there any way to differentiate groups from components when exploding? I use components to give me a kit list for the jobs I work on. I have had a couple of occasions where I have exploded one level too far and exploded a component because it was still selected as part of an exploded group (hope this makes sense). Basically I want to be able to explode all the groups in a drawing but leaving all the components intact.
Thanks -
RE: Script to bring all components from library into SU model
As we say in the west country "Thats the badger mi babber!!"
Works a treat now TIG - brilliant!
Thanks again for ALL your help with this and you patience
-
RE: Script to bring all components from library into SU model
Grrr - curses, they load in but something is going wrong Im afraid.
Copied and pasted code below - no error messages appearing but the components aren't all there and some of them are broken up / exploded it seems. I have 4 components that Im loading in this case (PLAT Carpet Amber FULL Diagonal A, B, C & D) but when I run the code I only get C and D as complete components and then I get two groups of objects that are broken up?
Ive attached a screen grab - the bottom row is the components as they appear after running the lines of code. The top row is the components loaded from the components pallet.
Ive also pasted the code from the console below...
skpfolderpath='C:\Users\sam.morris\Documents\TEST COMPS';model=Sketchup.active_model;ents=model.active_entities;defs=model.definitions;skps=[];Dir.foreach(skpfolderpath){|f|skps << File.join(skpfolderpath, f) if File.extname(f).downcase==".skp"};skps.each{|skp|defn=defs.load(skp)}
["C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal A.skp", "C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal B.skp", "C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal C.skp", "C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal D.skp"]
pt = Geom::Point3d.new(0,0,0)
Point3d(0, 0, 0)
newdefs = defs.to_a[(defs.length - skps.length)..-1]
[#Sketchup::ComponentDefinition:0xe60a9d8, #Sketchup::ComponentDefinition:0xe60a8e8, #Sketchup::ComponentDefinition:0xe60a8ac, #Sketchup::ComponentDefinition:0xe603908]
newdefs.each{|defn|tr=Geom::Transformation.new(pt);model.entities.add_instance(defn, tr);pt.x=pt.x+1.m}
[#Sketchup::ComponentDefinition:0xe60a9d8, #Sketchup::ComponentDefinition:0xe60a8e8, #Sketchup::ComponentDefinition:0xe60a8ac, #Sketchup::ComponentDefinition:0xe603908]Any further thoughts or help with this much appreciated.
Thanks -
RE: Script to bring all components from library into SU model
TIG, Dan,
Yee haaa! It works! Thank you both so much - TIG, thanks for being patient with a ruby luddite and Dan, thanks for finding the final missing piece of the puzzle. You have both been a huge help. -
RE: Script to bring all components from library into SU model
Also added ';' to all the lines of code to make complete blocks so I could paste a whole block in in one go rather than line by line - hope this is ok...
-
RE: Script to bring all components from library into SU model
[hr]just spotted that I was missing the ';' in this line just before 'pt.x' but have added it in, re-run and am now getting a different error (have highlighted the code in red this time and the result from the ruby console in blue...)
skpfolderpath='C:\Users\sam.morris\Documents\TEST COMPS';model=Sketchup.active_model;ents=model.active_entities;defs=model.definitions;skps=[;Dir.foreach(skpfolderpath){|f|skps << File.join(skpfolderpath, f) if File.extname(f).downcase==".skp"};skps.each{|skp|defn=defs.load(skp)}]
["C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal A.skp", "C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal B.skp", "C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal C.skp", "C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal D.skp"]pt = Geom::Point3d.new(0,0,0)
Point3d(0, 0, 0)newdefs = defs.to_a[(defs.length - skps.length)..-1]
[#Sketchup::ComponentDefinition:0xeb0e344, #Sketchup::ComponentDefinition:0xeb0e254, #Sketchup::ComponentDefinition:0xeb0e218, #Sketchup::ComponentDefinition:0xeb06270]newdefs.each{|defn|tr=Geom::transformation.new(pt);model.entities.add_instance(defn, tr);pt.x=pt.x+1.m}
%(#0000BF)[Error: #<NoMethodError: undefined methodtransformation' for Geom:Module> (eval):181 (eval):181:in
each'
(eval):181] -
RE: Script to bring all components from library into SU model
Hi TIG,
Still no dice Im afraid!
%(#FF0000)[skpfolderpath='C:\Users\sam.morris\Documents\TEST COMPS'
C:\Users\sam.morris\Documents\TEST COMPS
model=Sketchup.active_model
#Sketchup::Model:0xca07ab0
ents=model.active_entities
#Sketchup::Entities:0xe967bbc
defs=model.definitions
#Sketchup::DefinitionList:0xe84a5a4
skps=[]
[]
Dir.foreach(skpfolderpath){|f|skps << File.join(skpfolderpath, f) if File.extname(f).downcase==".skp"}
nil
skps.each{|skp|defn=defs.load(skp)}
["C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal A.skp", "C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal B.skp", "C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal C.skp", "C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal D.skp"]
pt = Geom::Point3d.new(0,0,0)
Point3d(0, 0, 0)
newdefs = defs.to_a[(defs.length - skps.length)..-1]
[#Sketchup::ComponentDefinition:0xe6e0704, #Sketchup::ComponentDefinition:0xe6e0614, #Sketchup::ComponentDefinition:0xe6e05d8, #Sketchup::ComponentDefinition:0xe6d9634]
newdefs.each{|defn|tr=Geom::transformation.new(pt);model.entities.add_instance(defn, tr)pt.x=pt.x+1.m}
Error: #<SyntaxError: (eval):178: compile error
(eval):178: syntax error, unexpected tIDENTIFIER, expecting '}'
...ities.add_instance(defn, tr)pt.x=pt.x+1.m}
^>
(eval):178]Am I missing a step - am working on PC and am pasting each line into ruby console one at a time... but still get this unexpected tIDENTIFIER error? Im afraid I can't troubleshoot this at all with my very limited ruby knowledge. Any ideas?
-
RE: Script to bring all components from library into SU model
Hi TIG
Im still getting a syntax error on this Im afraid. Below is everything that is listed in the console when i copy and paste the lines of code.skpfolderpath='C:\Users\sam.morris\Documents\TEST COMPS'
C:\Users\sam.morris\Documents\TEST COMPS
model=Sketchup.active_model
#Sketchup::Model:0xcec7dfc
ents=model.active_entities
#Sketchup::Entities:0xecc7c58
defs=model.definitions
#Sketchup::DefinitionList:0xebaa640
skps=[]
[]
Dir.foreach(skpfolderpath){|f|skps << File.join(skpfolderpath, f) if File.extname(f).downcase==".skp"}
nil
skps.each{|skp|defn=defs.load(skp)}
["C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal A.skp", "C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal B.skp", "C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal C.skp", "C:\Users\sam.morris\Documents\TEST COMPS/PLAT Carpet Amber FULL Diagonal D.skp"]
pt = Geom::Point3d.new(0,0,0)
Point3d(0, 0, 0)
newdefs = defs.to_a[(defs.length - skps.length)..-1]
[#Sketchup::ComponentDefinition:0xed92f20, #Sketchup::ComponentDefinition:0xed92e1c, #Sketchup::ComponentDefinition:0xed92dcc, #Sketchup::ComponentDefinition:0xed8aab4]
newdefs.each{|defn|tr=Geom::transformation.new(pt)model.entities.add_instance(defn, tr)pt.x=pt.x+1.m}
%(#FF0000)[Error: #<SyntaxError: (eval):178: compile error
(eval):178: syntax error, unexpected tIDENTIFIER, expecting '}'
...m::transformation.new(pt)model.entities.add_instance(defn, t...
^
(eval):178: syntax error, unexpected tIDENTIFIER, expecting '}'
...ities.add_instance(defn, tr)pt.x=pt.x+1.m}
^>
(eval):178]Ive copied and pasted every line of code in one by one in the ruby console but keep getting a syntax error when i put this line in
newdefs.each{|defn|tr=Geom::transformation.new(pt)model.entities.add_instance(defn, tr)pt.x=pt.x+1.m}
All the definitions are have been added, just cant seem to get any instances into the model?
Can you shed any light for me - sorry this keeps coming back to you.
Thanks
Sam -
RE: Codec incompatible with video size selected? ERROR
Hi Gai,
Are you able to move this to the bug forum just in case someone is inclined to look at it?
Thanks -
RE: Codec incompatible with video size selected? ERROR
SU pro trial reinstalled, no plugins loaded and still no joy. Same error persists.
-
RE: Codec incompatible with video size selected? ERROR
Just hope a reinstall will sort it out - will post back once I have some news.
-
RE: Codec incompatible with video size selected? ERROR
Yup - figured that would probably be the case.
Thanks tho Gai
-
RE: Codec incompatible with video size selected? ERROR
Sorry Gai - thats what Ive actually been trying to do. Export jpg or tif files to use in a printed document. In my screen shots jpg has been selected as the output format. Im not trying to make an animation just using the 'animation export' to allow me to export every scene (without transitions) as a jpg. So if I have 10 scenes I get 10 jpgs or tifs to use in indesign.
Have tried this with the avi export to to see if it will work as a self contained animation but still no dice - same error message!
Cheers -
RE: Codec incompatible with video size selected? ERROR
Hi Gai,
Sorry - my signature has two systems on it. 1. PC, 2. Mac - have pretty much moved completely to PC now so will amend my signature.
Yeah have tried exporting a 2d jpg and no probs - any size available. Unfortunately have had to uninstall now as I need to get this resloved but have just had the same issue occur on a colleagues machine?
Would like not to have to completely uninstall on all machines in the studio that would be great...
Any thoughts on this much appreciated -
RE: Codec incompatible with video size selected? ERROR
Hi Ecuadorian - couple of screen grabs attached. Just checked and all my video drivers are up to date.
Have tried with a couple of sizes that I know are definitely codec compatible - even tried selecting the default setting, then re typing 320x240 and get the same error message?
Just had a look at the last few plugins I installed and removed them incase they were causing a conflict - removed them and still the same issue!
Going to re-install now cos I need to be able to export. Thanks
-
RE: Codec incompatible with video size selected? ERROR
Will post one tomorrow - not at my pc now.
Thanks for comin back. Hope I can get to the bottom of this!
Cheers