Help with textures Log Out | Topics | Search
Moderators | Edit Profile

CADVANCE USERS FORUM » CADVANCE Forum » Help with textures « Previous Next »

  Thread Last Poster Posts Pages Last Post
  Start New Thread        

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Paul Plak
Username: Paul_plak

Registered: 11-2006
Posted From: 81.242.173.138
Posted on Monday, November 06, 2006 - 10:48 am:   

To Cadalot :

creating a texture on the spot when you need one is easy enough, I believe. It's managing the textures that's really hard. We'd need some way to parametrize them, a mechanism to do load and save. The LTX et ATX files should have some dialog allowing to access them and edit them. And symbol management for textures should be easy and allow easy transfer from PC to PC, maybe by embedding the symbol in the LTX or ATX files or whatever format that would replace them.

Of course, autocad compatibility can't hurt, but that would not be my first request.
Top of pagePrevious messageNext messageBottom of page Link to this message

Chad Connell
Username: Stinkercat1

Registered: 10-2006
Posted From: 209.94.95.1
Posted on Monday, October 09, 2006 - 02:20 pm:   

thanks. i will get back to you on that.
Top of pagePrevious messageNext messageBottom of page Link to this message

Cadalot
Username: Cadalot

Registered: 09-2006
Posted From: 84.69.138.248
Posted on Monday, October 09, 2006 - 12:56 pm:   

Chad

You can't just "copy and past to the texture file." You need the symbol, I have some symbols and textures that I created for a V12 User if you want them I can email them to you. There were however made for his particular set up but with a little work you can modify them for your units.

IMHO AutoCAD PAT compatability is one of the things that CADVANCE could do with, the whole system of making Textures to too time consuming for the end user.
Top of pagePrevious messageNext messageBottom of page Link to this message

Alexander Medwedew
Username: Alexander_medwedew

Registered: 10-2006
Posted From: 4.237.183.214
Posted on Saturday, October 07, 2006 - 10:28 am:   

Try removing the space in "pnt 0" at the end of the line.

i_ret%=CdiObjTexture(l_osl&,0&,CDI_EVEN, tx_spacing2, tx_angle+90.000000#, pnt1, pnt 0)

Jeff,

The line should read:

i_ret%=CdiObjTexture(l_osl&, 0&, CDI_EVEN, tx_spacing2, tx_angle+90.000000#, pnt1, pnt0)

The forum seems to have formatted the text incorrectly for that line.
Top of pagePrevious messageNext messageBottom of page Link to this message

Chad Connell
Username: Stinkercat1

Registered: 10-2006
Posted From: 209.94.95.1
Posted on Saturday, October 07, 2006 - 07:53 am:   

Are there any textures out there that I can just copy and past to the texture file. I would appreciate any that I can get. Thanks.
Top of pagePrevious messageNext messageBottom of page Link to this message

Jeff_hayden
Username: Jeff_hayden

Registered: 09-2006
Posted From: 216.62.125.199
Posted on Friday, October 06, 2006 - 12:26 pm:   

The macro gives me a syntax error on this line:

i_ret%=CdiObjTexture(l_osl&,0&,CDI_EVEN,tx_spacing2,tx_angle+90.000000#,pnt1,pnt 0)

I'm not smart enough to correct it.
Top of pagePrevious messageNext messageBottom of page Link to this message

Chad Connell
Username: Stinkercat1

Registered: 10-2006
Posted From: 209.94.95.1
Posted on Thursday, October 05, 2006 - 03:45 pm:   

thanks for the help but your post is WAY over my head. I am not a programmer by any means. thanks anyways.
Top of pagePrevious messageNext messageBottom of page Link to this message

Alexander Medwedew
Username: Alexander_medwedew

Registered: 10-2006
Posted From: 4.237.176.100
Posted on Wednesday, October 04, 2006 - 08:27 am:   

Would a macro that creates textures be useful?

Here is an example of CBL code that will place a 90 degree grid texture:

sub main

if CdiGetProgMode()=CDI_3D_MODE then
exit sub
end if

dim texture_buffer as CDI_TEXTURE_INFO
dim object as CDI_OSL_OBJECT
dim pnt0 as CDI_DD_POINT
dim pnt1 as CDI_DD_POINT
dim object1 as CDI_OSL_OBJECT
dim snapmode as integer

count&=CdiOslCount(0&)
l_osl&=CdiCreateLocalOsl(CDI_OBJECT_COLOR,0&, CDI_REDRAW_OSL)
if count&=0 then
i_ret%=CdiSelectbyPoint(l_osl&,"Select object to texture",CDI_OBJECT_SELECTION,CDI_FALSE,CDI_TRUE,pnt0,CDI_SEL2D_LINESETS)
if i_ret%=CDI_ERROR or i_ret=CDI_ABORT then
exit sub
end if
i_ret%=CdiObjDraw(l_osl&,CDI_HIGHLIGHT)
count&=1
else
for osl_item&=1 to count&
i_ret%=CdiOslItem(0&,osl_item&-1, object1)
i_ret%=CdiOslAdd(l_osl&,object1.sid,CDI_TRUE)
next osl_item&
end if
call CdiGetTextureInfo(texture_buffer)
i_ret%=CdiGetDist("Horizontal spacing",0,0,tx_spacing1)
if i_ret%=CDI_ERROR then
exit sub
end if

i_ret=CdiGetDist("Vertical spacing",0,0,tx_spacing2)
if i_ret%=CDI_ABORT or i_ret%=CDI_ERROR then
i_ret%=CdiSetSnapMode(snapmode%)
i_ret%=CdiFreeLocalOsl(l_osl&)
exit sub
end if

i_ret%=CdiGetDouble("Enter angle",0,90,6,tx_angle)
if i_ret%=CDI_ABORT or i_ret%=CDI_ERROR then
i_ret%=CdiSetSnapMode(snapmode%)
i_ret%=CdiFreeLocalOsl(l_osl&)
exit sub
end if

i_ret%=CdiGetPoint("Texture origin",pnt0,button_hit%,menu_hit%)
if button_hit%=CDI_BUTTON_1 then
i_ret%=CdiObjSnap(pnt0,pnt1)
i_ret%=CdiObjTexture(l_osl&,0&,CDI_EVEN,tx_spacing1,tx_angle,pnt1,pnt0)
i_ret%=CdiObjTexture(l_osl&,0&,CDI_EVEN,tx_spacing2,tx_angle+90.000000#,pnt1,pnt 0)
end if
i_ret%=CdiFreeLocalOsl(l_osl&)
i_ret%=CdiObjDraw(0&,CDI_HIGHLIGHT)
i_ret%=CdiSetSnapMode(snapmode)
end sub
Top of pagePrevious messageNext messageBottom of page Link to this message

Chad Connell
Username: Stinkercat1

Registered: 10-2006
Posted From: 209.94.95.1
Posted on Tuesday, October 03, 2006 - 11:23 am:   

I am looking for any new textures that might be out there that i can download. I have made a few of my own but as you know it takes time to do so. Plus they are very simple ones. The AETools textures are not as easy to use because they do not have the phantom line ability. I would rather use the ones that are created with the regular program. Any help would be great.

Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration