Efeezy Posted June 21, 2010 Share Posted June 21, 2010 Does anyone have a cubic feet calculator for extrude objects? Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 21, 2010 Share Posted June 21, 2010 (vla-get-volume (vlax-ename->vla-object (car (entsel)))) Quote Link to comment Share on other sites More sharing options...
Efeezy Posted June 21, 2010 Author Share Posted June 21, 2010 didn't work Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 21, 2010 Share Posted June 21, 2010 didn't workI tried it on an extruded rectangle and circle and it worked for me.What's the return? The more information you provide, the better. Quote Link to comment Share on other sites More sharing options...
Freerefill Posted June 21, 2010 Share Posted June 21, 2010 If you got an error that the functions weren't available, you might try (vl-load-com) first. Quote Link to comment Share on other sites More sharing options...
Small Fish Posted June 21, 2010 Share Posted June 21, 2010 Efeezy - Did you stick Alan's and Freerefill's lines togther? something like..... (defun c:Cubfeet (/ Volfeet) (vl-load-com) (setq Volfeet(vla-get-volume (vlax-ename->vla-object (car (entsel))))) (princ (strcat"\nVolume = "(rtos Volfeet 2 2) "ft³")) (princ) );defun Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 21, 2010 Share Posted June 21, 2010 One more (defun c:MrEfeezysVolume ( / ent obj ) (vl-load-com) (if (setq ent (car (entsel))) (if (vlax-property-available-p (setq obj (vlax-ename->vla-object ent)) 'Volume) (alert (strcat "Volume: " (rtos (vla-get-Volume obj)))) (alert "Selected Object Does not have a Volume Property") ) ) (princ) ) Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 21, 2010 Share Posted June 21, 2010 One more (defun c:MrEfeezysVolume ( / ent obj ) (vl-load-com) (if (setq ent (car (entsel))) (if (vlax-property-available-p (setq obj (vlax-ename->vla-object ent)) 'Volume) (alert (strcat "Volume: " (rtos (vla-get-Volume obj)))) (alert "Selected Object Does not have a Volume Property") ) ) (princ) ) HaHa, I wrote it the same exact way when I wrote a dummy function. I was just waiting on him to get a little farther with it. Quote Link to comment Share on other sites More sharing options...
Cad64 Posted June 21, 2010 Share Posted June 21, 2010 You guys ever feel like you're being taken for granted? Quote Link to comment Share on other sites More sharing options...
Efeezy Posted June 21, 2010 Author Share Posted June 21, 2010 MrEfeezysVolume Quote Link to comment Share on other sites More sharing options...
Efeezy Posted June 21, 2010 Author Share Posted June 21, 2010 MrEfeezysVolume works perfect thank you!!! You should have put your name on it... Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 21, 2010 Share Posted June 21, 2010 You guys ever feel like you're being taken for granted? Definitely. Which is why my posts have a lot less parens than they used to. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 21, 2010 Share Posted June 21, 2010 Definitely. Which is why my posts have a lot less parens than they used to. Ditto But that was just a throwaway really... Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 21, 2010 Share Posted June 21, 2010 MrEfeezysVolume works perfect thank you!!! You should have put your name on it... I'm sure you can do that for me Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 21, 2010 Share Posted June 21, 2010 Ditto But that was just a throwaway really... All the more reason to let them figure it out on their own. :wink: Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 21, 2010 Share Posted June 21, 2010 You guys ever feel like you're being taken for granted? All the more reason to let them figure it out on their own. :wink: __________________________________________ didn't work Judging by this useless comment ^^, I doubt the OP did very much to get closer to the solution to be honest. I would imagine they expected the solution to be handed to them on a plate. Quote Link to comment Share on other sites More sharing options...
alanjt Posted June 21, 2010 Share Posted June 21, 2010 __________________________________________ Judging by this useless comment ^^, I doubt the OP did very much to get closer to the solution to be honest. I would imagine they expected the solution to be handed to them on a plate. Then that would make me want to help even less. It's no skin off my teeth if they don't get what they want. I'm all for helping, but I'm not going to force a solution to the 'problem' because they're too lazy take the provided information and run with it. Quote Link to comment Share on other sites More sharing options...
Lt Dan's legs Posted June 22, 2010 Share Posted June 22, 2010 Maybe you guys should dish out "it's time to learn lisp" more often. I needed to hear that to get going. Quote Link to comment Share on other sites More sharing options...
Freerefill Posted June 22, 2010 Share Posted June 22, 2010 Maybe you guys should dish out "it's time to learn lisp" more often. I agree. Giving someone a full, complete program is only going to teach them if they force themselves to pick it apart and research every bit of it. And if it's too advanced, they wouldn't know where to start. If anything, giving someone a complete program would make them NOT want to learn, because why would they if they already have the end result of their immediately need? This may tie in to the proposed forum update. It would be nice to have a forum dedicated to actually learning, where all the complete code and programs go into the code archive. Then again, I don't want to make suggestions that'll make more work for CadTutor or the mods.. Quote Link to comment Share on other sites More sharing options...
Skybeorn Posted June 22, 2010 Share Posted June 22, 2010 Cad64, LeeMac, alanjt. I just want you to know that some of us really do appreciate the work you guys do. Some of us are here seeking knowledge not demanding requests. I will agree with you that some members are over exuberant in their demands. I am dissapointed with the posts that are tailored "High Priority" or "I need this right away" Thats really all. Just thought you should hear it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.