Jump to content

Cubic Feet Calcualtor


Efeezy

Recommended Posts

  • Replies 31
  • Created
  • Last Reply

Top Posters In This Topic

  • Efeezy

    9

  • alanjt

    8

  • Lee Mac

    8

  • Freerefill

    3

didn't work
I tried it on an extruded rectangle and circle and it worked for me.

What's the return? The more information you provide, the better.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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)
)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

You guys ever feel like you're being taken for granted? :unsure:

Definitely. Which is why my posts have a lot less parens than they used to.

Link to comment
Share on other sites

Ditto :thumbsup:

 

But that was just a throwaway really...

All the more reason to let them figure it out on their own. :wink:

Link to comment
Share on other sites

You guys ever feel like you're being taken for granted? :unsure:

 

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.

Link to comment
Share on other sites

__________________________________________

 

 

 

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.

Link to comment
Share on other sites

Maybe you guys should dish out "it's time to learn lisp" more often. I needed to hear that to get going.

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...