I'm working on a SolidWorks mechanical drawing generated from a 3-D model I created. I added ordinals to the drawing and text for the sheet title, but all of my text is coming out in yellow:
I've checked that the layer is set to 0, and that the color for layer 0 is set to black. I've also gone through the Options-->System Options-->Colors screen but it did not help me figure out why everything is yellow. It must be a local setting somewhere, because when I try opening the files on another computer it works fine. It's just a pain right now, though, because I need to export to PDF and it shows up as yellow in the PDF instead of black. Is there a setting somewhere that I may have missed?
I would personally go to the settings to determine what type of dimensions SolidWorks assigns the yellow color to.
Tools Options -> Colors -> Color Scheme
By doing that, you will able to figure out what's wrong with the dimension.
Generally speaking, yellow is assigned to dangling dimensions (Dimensions of parts they were modified or deleted).
Related
I am building an application in Excel 2013 that draws graphs and then fills the area under the graph using AddPolyline to create shapes. I then color these shapes using RGB and Transparency.
Everything is working fine except that Excel completely ignores the Transparency factor for the Line.
myShape.Fill.ForeColor.RGB = RGB(R, G, B)
myShape.Fill.Transparency = T
myShape.Line.ForeColor.RGB = RGB(R, G, B)
myShape.Line.Transparency = T
Currently I am having to reside to a backup solution which is to just make the line invisible using:
myShape.Line.Visible = False
However, this leaves little white markers between my shapes that should otherwise be perfectly aligned.
I have tried things like making the line weight small etc.
Can anyone else confirm this behavior as a bug, or point out what I am doing wrong?
Edit:
Attached a screenshot of the issue.
Make sure what you are dealing is not a border but a true line. Check on LineFormat properties.
For a line, the LineFormat object contains formatting information for the line itself; for a shape with a border, this object contains formatting information for the shape's border.
Try myShape.Line.Visible = msoFalse
Not to forget that Transparency property LineFormat object infact refers to the specified fill of the shape.
You may also record a macro while following this tutorial to check the exact properties of polylines.
On another note, why don't you make the line colour as same as shape colour? In that case, there wouldn't be a different between the line and the shape. However this clearly depends on your usage and intention.
Few references to consider regarding buggy & awakward shape, line properties.
I have a map of the warehouse where I work, and I'm trying to make a heatmap of activity that has taken place within a certain aisle.
I have managed to get the VBA working by having permanent red shapes positioned over each aisle, then adjusting the transparency of each box according to the percentage of the aisle.
It looks great on screen, however the multiple methods i have tried for printing does not work;
Expected output (this is what it looks like on screen):
The various methods I have tried all produce the same result, these include :-
Printing directly
SaveAs PDF
Print as PDF (We have PDF virtual printer)
Save Range as a Bitmap
Copy Screen into a Chart, then save export the chart as image
Exported AS PDF :-
Saved as Bitmap :-
When it is printed it has different patterns within the red area, from what i have found, each pattern represents a certain transparency.
Short of using PRTSCN on my keyboard to get it and paste it into paint, i dont know how to move forward with this. This needs to be completely automated (ie, emailable and printable each day), so PRTSCR isnt really an option.
Any ideas would be much appreciated.
For anyone that manages to come across this, what i did in the end, was the get the % of 255 and to set the RGB color value of the shape.
Example psuedo-code below:
for each shp in Activesheet.Shapes
newTrans = 255 * Sheet5.Range("P" & i).Value 'New transparency
Shp.Select
Selection.ShapeRange.Fill.ForeColor.RGB = RGB(255, newTrans, newTrans)
DoEvents
next shp
This will give a shade of red, based on the percentage on sheet5.
I am working with aspjpeg component. there the color mentioned like &HFFFF0000 for red etc. How can I get a particular color code in this format?
That is a RGB code color. But I don't really get your point. If you are asking to change the color manually or select the color and then get the code. In both cases click on the black/white box is (left toolbar), select the color and you will see a little box where it shows you the code, or if you want to put a color manually write the code there and it will take you directly to the color.
Hope it helps.
I asked this question on the LiveCode email list. No response, so I figure it must not be possible. I know about editing the template graphic that enables alternating row colors. That doesn't help me.
This lesson is the closest to what I have found, but it only sets the overlay color to empty cells. It also had an unwanted affect, where any data that was present in the grid no longer shows up.
http://lessons.runrev.com/s/lessons/m/datagrid/l/7327-how-do-i-override-the-default-behavior-for-rendering-data-to-a-cell
As a little experiment, since the data became invisible (note that I'm on WinXP), I tried placing an opaque graphic over the column I wish to colorize. I set the ink of the graphic to AddMax or AddOver, and it looked nice, but the text in the cells disappeared. Then I tried setting the ink to AddMin, and it still looks good, but the test shows through!!!!
So, I think this will work fine visually, but how can I pass a double-click through this graphic to the cell underneath (to allow cell editing only within this column)?
Yes, you can do this.
This suggestion comes from Trevor DeVore at http://www.bluemangolearning.com/
Create a custom column template using the property inspector. From there you can edit the behavior of the column to colorize the background color of the field for that column or just edit the field in the template group to change the color.
The background color will only show up in rows that have data, however.
I have some trouble with a document when exporting it to pdf with the builtin pdf export function of excel (2010).
I've generated a graph on my worksheet, with some colored cells arround it. Visually it looks good (even if I zoom on it with the ctrl key + mouse wheel). But when exporting, the graph overlap the surrounding cells.
For example, on the image bellow, I take a screenshot of my graph in excel (at top) and in pdf (at bottom). The red part is my graph (I've colored the background of the graph object). The graph have a black border. And just on the top of the graph, I've colored the background of a cell in blue. Normally, the graph must not overlap the blue cell, because I've manually place it bellow (cut the graph, select the cell bellow the blue one, and past the graph to this emplacement).
But we can see that:
the black border overlap the blue cell (in excel and in pdf version; but it's not really my problem; I've understand that the border in excel object is at outside the object; and then overlapp surround objects/cells).
the graph (in red + the border) has not the same place in excel and in pdf, there is a big offset (it's not a resize problem, this offset is present and the left side too). The place of the graph is more on the left and more on the top in pdf version than it can be!
(I'm using this to automatically generate reports; and the result is not visually good)
Is there any way to overcome this problem?
Hmm, I can't replicate your problem, but I've had similar issues exporting Crystal Reports to PDF. Here's 2 suggestions, neither of which is perfect and I couldn't try them first (again, sorry I couldn't replicate the problem):
Add a white row with a very small height between the graph and the cell. It might even be visually more appealing than the 2 objects one on top of the other.
Make your graph's background transparent and hide the border. Maybe add some extra white space at the top of your graph. That way, they'll still overlap, but it won't be as obvious.