Search the Community
Showing results for tags 'bitmap'.
Found 3 results
Hassan Raza posted a topic in General DiscussionHi Everybody, I am using some bitmap images in my project model. These Images are the murals that we are using on the wall. When I create a sectional viewport on to sheets in hidden rendering , it does not show up but I can see them when I try to edit the sectional viewport within section in-place or in design layer. Is there a way to use these images (in whatever format) so it can be visible in sectional viewports. Thank you!
Carles Olle posted a topic in Python ScriptingHi, I'm trying to change the size of the bitmap associated to a particular shader record in a texture. I'm not sure how to do that but I assume that I can do it through some code like this: shaderRecord = vs.GetShaderRecord(texture, 1) bitmapHandle = vs.GetTextureBitmap(shaderRecord) # Get bitmap width and height pixels paintWidth = vs.GetObjectVariableLongInt(bitmapHandle, 530) paintHeight = vs.GetObjectVariableLongInt(bitmapHandle, 531) # Set the bitmap feature to max wdith vs.SetTexBFeatureStart(bitmapHandle, 0, 0) vs.SetTexBFeatureEnd(bitmapHandle, piantWidth, 0) # Set the width feature to the corresponding real world dimension vs.SetTexBitFeatureSize(bitmapHandle, vs.PImage_Width) # Set the bitmap feature to max height vs.SetTexBFeatureEnd(bitmapHandle, 0, piantHeight) # Set the width feature to the corresponding real world dimension vs.SetTexBitFeatureSize(bitmapHandle, vs.PImage_Height) The problem is that bitmapHandle doesn't seem to work for most of these calls. Specifically GetObjectVariableLongInt returns 0 in both cases. I'm sure it is something obvious but I cannot find where is the problem. Helps would be appreciated. Cheers --Carlos