Appearance incorrectly oriented in some cases...

Appearance incorrectly oriented in some cases...

hozz__
Enthusiast Enthusiast
703 Views
11 Replies
Message 1 of 12

Appearance incorrectly oriented in some cases...

hozz__
Enthusiast
Enthusiast

 

I have two wood panels i've created, both oriented to X,y, z in the same manner.

 

when I apply a textured appearance to the edge, in one case the grain orients vertically, and in the other it orients horizontally.  I have no idea as to why. Help please

 

 

 

Capture.PNG

0 Likes
704 Views
11 Replies
Replies (11)
Message 2 of 12

Curtis_Waguespack
Consultant
Consultant

Hi @hozz__ 

 

See this recent related topic:

https://forums.autodesk.com/t5/inventor-forum/wood-rendering/m-p/9317059#M777985

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

0 Likes
Message 3 of 12

andrewdroth
Advisor
Advisor

Check this out.

https://forums.autodesk.com/t5/inventor-forum/the-same-direction-of-texture-on-all-faces/td-p/727929...

 


Andrew Roth
rothmech.com

YouTube IconLinkedIn Icon


IV2025 Pro
Apple IIe Workstation
65C02 1.023 MHz, 64 KB RAM
Apple DOS 3.3
0 Likes
Message 4 of 12

hozz__
Enthusiast
Enthusiast

This doesn't work when applying appearance programmatically, because the my code doesn't know which of the 2 parts is 90 degrees out to start with...I need to understand what cause the incorrect orientation to start with...rotating the appearance amounts to treating the symptom rather than resolving the root problem.

0 Likes
Message 5 of 12

Curtis_Waguespack
Consultant
Consultant

@hozz__ wrote:

This doesn't work when applying appearance programmatically, because the my code doesn't know which of the 2 parts is 90 degrees out to start with...I need to understand what cause the incorrect orientation to start with...rotating the appearance amounts to treating the symptom rather than resolving the root problem.


Hi @hozz__ 

 

I didn't understand that this was a programming related question... I'll ask the moderators to move this topic to the Inventor Customization forum where it will get the correct audience for programming type questions.

 

In the mean time you can search that forum for previous or similar questions that relate to this to see if your question has been answered in the past:

http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

EESignature

0 Likes
Message 6 of 12

Curtis_Waguespack
Consultant
Consultant

Actually, I just did a quick search and turned up this post that might or might not help (I didn't look too closely)

https://forums.autodesk.com/t5/inventor-customization/api-the-same-orientation-of-texture-on-all-fac...

EESignature

0 Likes
Message 7 of 12

hozz__
Enthusiast
Enthusiast

It's not really a programming related question...the problem of inconsistent orientation exists without executing a single line of code

0 Likes
Message 8 of 12

hozz__
Enthusiast
Enthusiast

This is programmatic version of same "Rotate the appearance after the fact" solution you offered previously.  What I really need to know is why in one case an unrotated appearance is vertical in orientation and horizontal in the other

0 Likes
Message 9 of 12

Curtis_Waguespack
Consultant
Consultant

Hi @hozz__ 

 

Edit: I saw your last post after I responded... I don't really know how Inventor is applying the appearances, maybe there is some rhyme or reason to it... but I've never looked at it close enough to know..

 

I'm not sure what you're looking for?  

 

I showed you the manual way to adjust the face based on the information you provided in your first post, and then you mentioned "This doesn't work when applying appearance programmatically, because the my code doesn't know which of the 2 parts is 90 degrees out to start with"... 

 

The short answer is that Inventor's method of applying appearances is not "smart" and is simply not looking at the the face orientation, or whatever might be used to make the appearance applied in a more accurate manner.

 

You might be able to find something in the API that would allow you to use the some property of the face to determine the adjustment that needs to be made, but since you state this is not a programming related question then maybe not?

 

I think that's the best I can do to help, unless you provide a more clear and detailed explanation of what you are asking.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

0 Likes
Message 10 of 12

hozz__
Enthusiast
Enthusiast

If this is the case...."You might be able to find something in the API that would allow you to use the some property of the face to determine the adjustment that needs to be made" then

 

This can't be the case... "Inventor's method of applying appearances is not "smart" and is simply not looking at the the face orientation"

 

just sayin

0 Likes
Message 11 of 12

Curtis_Waguespack
Consultant
Consultant

@hozz__ wrote:

If this is the case...."You might be able to find something in the API that would allow you to use the some property of the face to determine the adjustment that needs to be made" then

 

This can't be the case... "Inventor's method of applying appearances is not "smart" and is simply not looking at the the face orientation"

 

just sayin


I guess my thought was that textures might be applied using a rather "dumb" default method, but there might be something in the API that could be used to reorient them more intelligently, but thanks for setting me straight 😉

 

For others, here's the link to the continuation of this post in case it helps someone find a solution to a similar question in the future.

https://forums.autodesk.com/t5/inventor-customization/determine-how-an-appearance-will-be-oriented-t...

EESignature

0 Likes
Message 12 of 12

hozz__
Enthusiast
Enthusiast

sorry...autism has a tendency to make me a bit pedantic

0 Likes