Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Recently Finished Project

tolgay.hickiran
Advisor

Recently Finished Project

tolgay.hickiran
Advisor
Advisor

We were working on C360 for a long while now and recently finished another project which has lots of functions. You can check the video!

 


Some worthwhile ideas
Copy Design should rename ilogic Rules too!
Why Nastran In-CAD doesn't have an SDK?IMPLEMENTED!

Tolgay Hickiran
Founding Partner
SignatureSignature

website
emailskypelinkedinyoutubeemail

Reply
Reply
Reply
705 Views
8 Replies
Replies (8)

PEMDz
Contributor
Contributor

Wish I was good enough to be able to get half way to this 😞 Sadly I'm self taught and there doesn't seem much in the way of instruction out there to be able to do this

Reply
Reply
0 Likes

clutsa
Collaborator
Collaborator

@tolgay.hickiran When I wrap my project up in the next couple of months I would love to record a similar video. What software did you use to record and edit that?

If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State

Custom Glyph Icon for iMates

Reply
Reply
0 Likes

tolgay.hickiran
Advisor
Advisor
Its Camtasia

Some worthwhile ideas
Copy Design should rename ilogic Rules too!
Why Nastran In-CAD doesn't have an SDK?IMPLEMENTED!

Tolgay Hickiran
Founding Partner
SignatureSignature

website
emailskypelinkedinyoutubeemail

Reply
Reply
0 Likes

Paul1084
Advocate
Advocate

Hi Tolgay,

 

Nice Configurator

 

Are the textures Decals? or Materials? if they are Decals, how are they swapped? do you have all the textures saved in the part, and then suppress unsuppress the relevant Decal? I am trying to do a similar thing, although I am finding keeping all the textures in the part multiplies my file sizes... I was hoping there might be a way to swap the sketch image out based on the image file name. 

 

Thanks 

Reply
Reply

KKizildemir
Collaborator
Collaborator

Hi @Paul1084 ,

 

I defined seperate appearances for each textures and colours. The code can sense all the appearances in the 'Document Appearances' and add the names of the appearances to an arraylist. Then we use this arraylist to change the appearance of the part.

 

1.JPG

 

There were some key points while I was working on appearances with textures:

  1. I found seamless textures to tile. Seamless textures enables infinite surface tiling.
  2. I increased the contrast of the seamless texture. So it became black&white.
  3. I used these textures within 'Relief Pattern' property to obtain relief lines instead of using a simple texture tiling with different colours. So, I was able to generate each relief pattern for all colours by simply changing the colour of the appearance.2.JPG 

I hope this makes sense. Don't hesitate to ask any question.

 

Regards,

 

Signature

website
emailskypelinkedinyoutubeemail
Reply
Reply

Paul1084
Advocate
Advocate

I have successfully got my model working with a custom Appearance, but instead of relief pattern, I have used a bump pattern. I have also used some code to control the colour by three parameters (R,G,B) so there only needs to be 1 appearance in the part file, and the user can control the colour using an RGB code... this works great in C360 😁:

 

        Dim OTG As TransientObjects = ThisServer.TransientObjects
		Dim Doc As PartDocument
		
		Doc = ThisDoc.Document

		Dim feat As PartFeature = Doc.ComponentDefinition.Features.Item("Extrusion1")
        Dim docAssets As Assets = Doc.Assets
        Dim App As Asset = docAssets.Item("Default")
        Dim color As ColorAssetValue = App.Item("generic_diffuse")

        color.Value = OTG.CreateColor(R, G, B)

		feat.Appearance = App
Reply
Reply

KKizildemir
Collaborator
Collaborator

Hey @Paul1084 ,

 

That's one of the best ways to change colour, great!

 

Kind regards,

 

Signature

website
emailskypelinkedinyoutubeemail
Reply
Reply
0 Likes